public class LXMixerEngine extends LXComponent implements LXOscComponent
Modifier and Type | Class and Description |
---|---|
static interface |
LXMixerEngine.Listener |
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
List<LXAbstractChannel> |
channels |
CompoundParameter |
crossfader |
ObjectParameter<LXBlend> |
crossfaderBlendMode |
BooleanParameter |
cueA |
BooleanParameter |
cueB |
DiscreteParameter |
focusedChannel |
LXMasterBus |
masterBus |
static String |
PATH_CHANNEL |
static String |
PATH_FOCUSED |
static String |
PATH_MASTER |
BooleanParameter |
viewCondensed |
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
LXMixerEngine(LX lx) |
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, loadParameters, removeParameter, removeParameter, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOscAddress
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public final List<LXAbstractChannel> channels
public final LXMasterBus masterBus
public final DiscreteParameter focusedChannel
public final CompoundParameter crossfader
public final ObjectParameter<LXBlend> crossfaderBlendMode
public final BooleanParameter cueA
public final BooleanParameter cueB
public final BooleanParameter viewCondensed
public static final String PATH_CHANNEL
public static final String PATH_FOCUSED
public static final String PATH_MASTER
public LXMixerEngine(LX lx)
public final LXMixerEngine addListener(LXMixerEngine.Listener listener)
public final LXMixerEngine removeListener(LXMixerEngine.Listener listener)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic BooleanParameter getScene(int index)
index
- Index of scenepublic LXMixerEngine launchScene(int index)
index
- Scene indexpublic LXMixerEngine stopClips()
public boolean handleOscMessage(OscMessage message, String[] parts, int index)
LXComponent
handleOscMessage
in interface LXOscComponent
handleOscMessage
in class LXComponent
message
- Full OSC message objectparts
- The OSC address pattern, broken into an array of partsindex
- Which index into the parts array corresponds to this component's childrentrue
if the OSC message was handled and should be considered consumed, false
otherwiseprotected LXBlend[] instantiateChannelBlends()
protected LXBlend[] instantiateTransitionBlends()
protected LXBlend[] instantiateCrossfaderBlends()
public List<LXAbstractChannel> getChannels()
public LXChannel getDefaultChannel()
public LXAbstractChannel getLastChannel()
public LXAbstractChannel getChannel(int channelIndex)
public LXAbstractChannel getChannel(String label)
public LXBus getFocusedChannel()
public LXMixerEngine setFocusedChannel(LXBus channel)
public LXMixerEngine deselectChannel(LXBus bus)
public LXMixerEngine selectChannel(LXBus bus)
public LXMixerEngine selectChannel(LXBus bus, boolean multipleSelection)
public LXMixerEngine selectChannelRange(LXBus destination)
public LXChannel addChannel()
public LXChannel addChannel(int index)
public LXMixerEngine group(LXGroup group, LXChannel channel, int index)
public LXMixerEngine ungroup(LXChannel channel)
public LXGroup addGroupFromSelection()
public LXGroup addGroup()
public LXGroup addGroup(int index)
public void removeSelectedChannels()
public void removeChannel(LXAbstractChannel channel)
public void moveChannel(LXAbstractChannel channel, int delta)
public void loop(LXEngine.Frame render, double deltaMs)
public void save(LX lx, JsonObject obj)
LXComponent
super.save(lx, obj)
at the appropriate time.save
in interface LXSerializable
save
in class LXComponent
lx
- LX instanceobj
- Object to serialize intopublic void load(LX lx, JsonObject obj)
LXComponent
load
in interface LXSerializable
load
in class LXComponent
lx
- LX instanceobj
- Object to deserializepublic void dispose()
LXComponent
super.dispose()
at the appropriate
time to perform the basic cleanup, which may need to happen either before or after cleaning
up other objects.dispose
in class LXComponent
public void clear()
public void loadChannel(JsonObject channelObj)
public void loadChannel(JsonObject channelObj, int index)
LX library by Mark C. Slee. © 2012-2020