Package heronarts.lx.audio
Class SoundStage
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.audio.SoundStage
- All Implemented Interfaces:
LXPath
,LXSerializable
,LXOscComponent
,LXParameterListener
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Hidden, LXComponent.Placeholder, LXComponent.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
Modifier and TypeFieldDescriptionfinal BoundedParameter
final BoundedParameter
final LXVector
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final LXVector
final BooleanParameter
final BooleanParameter
final LXVector
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
final BoundedParameter
Fields inherited from class heronarts.lx.LXComponent
children, internalParameters, KEY_CHILDREN, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, lx, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFile
Fields inherited from interface heronarts.lx.LXPath
ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the normalized sound object position in the global model spacegetNormalizedObjectPosition
(SoundObject object, SoundStage.ObjectPositionMode mode, LXModel reference) For the given sound object, determine its position using the given mode of placement in the sound stage, and then re-normalized it against the bounds of the reference model.getNormalizedObjectPosition
(SoundObject object, SoundStage.ObjectPositionMode mode, LXModel model, LXVector position) For the given sound object, determine its position using the given mode of placement in the sound stage, and then re-normalized it against the bounds of the reference modelgetNormalizedObjectPosition
(SoundObject object, LXModel reference) Gets the normalized sound object position in the global model spacevoid
load
(LX lx, JsonObject obj) Loads the LX component.Methods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, contains, copyParameters, dispose, getCategory, getChild, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isValidOscParameter, loadParameters, loadPreset, onParameterChanged, removeParameter, removeParameter, removeParameter, removeParameter, save, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface heronarts.lx.osc.LXOscComponent
getOscAddress, handleOscMessage
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
rotation
-
center
-
size
-
mode
-
xAbsolute
-
yAbsolute
-
zAbsolute
-
widthAbsolute
-
heightAbsolute
-
depthAbsolute
-
azimuthAbsolute
-
elevationAbsolute
-
xRelative
-
yRelative
-
zRelative
-
widthRelative
-
heightRelative
-
depthRelative
-
azimuthRelative
-
elevationRelative
-
showSoundStage
-
showSoundObjects
-
soundObjectMeterMode
-
soundObjectSize
-
-
Constructor Details
-
SoundStage
-
-
Method Details
-
getNormalizedObjectPosition
Gets the normalized sound object position in the global model space- Parameters:
object
- Sound object- Returns:
- Vector of normalized x/y/z values for sound object position
-
getNormalizedObjectPosition
Gets the normalized sound object position in the global model space- Parameters:
object
- Sound objectreference
- Model to perform normalization against- Returns:
- Vector of normalized x/y/z values for sound object position
-
getNormalizedObjectPosition
public LXVector getNormalizedObjectPosition(SoundObject object, SoundStage.ObjectPositionMode mode, LXModel reference) For the given sound object, determine its position using the given mode of placement in the sound stage, and then re-normalized it against the bounds of the reference model. Note that this version of the method allocates memory.- Parameters:
object
- Sound objectmode
- Sound stage positioning modereference
- Reference model- Returns:
- The position vector
-
getNormalizedObjectPosition
public LXVector getNormalizedObjectPosition(SoundObject object, SoundStage.ObjectPositionMode mode, LXModel model, LXVector position) For the given sound object, determine its position using the given mode of placement in the sound stage, and then re-normalized it against the bounds of the reference model- Parameters:
object
- Sound objectmode
- Sound stage positioning modemodel
- Model being rendered toposition
- Position vector to fill- Returns:
- The position vector
-
load
Description copied from class:LXComponent
Loads the LX component. Restores the ID of the component, as well as its internal and user-facing parameters. Any explicitly registered children will be automatically loaded, so long as they are direct descendants. Dynamic arrays will not be automatically loaded, this is left to subclasses to implement.- Specified by:
load
in interfaceLXSerializable
- Overrides:
load
in classLXComponent
- Parameters:
lx
- LX instanceobj
- Object to deserialize
-