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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.RenamableNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BoundedParameterfinal BoundedParameterfinal LXVectorfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal LXVectorfinal BooleanParameterfinal BooleanParameterfinal LXVectorfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterfinal BoundedParameterFields inherited from class heronarts.lx.LXComponent
childArrays, 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, presetFileFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
Constructors -
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 spacevoidload(LX lx, JsonObject obj) Loads the LX component.Methods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, dispose, getCategory, getChild, getComponentDescription, 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.osc.LXOscComponent
getOscAddress, handleOscMessageMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, 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:LXComponentLoads 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:
loadin interfaceLXSerializable- Overrides:
loadin classLXComponent- Parameters:
lx- LX instanceobj- Object to deserialize
-