public abstract class LXAbstractChannel extends LXBus implements LXComponent.Renamable
Modifier and Type | Class and Description |
---|---|
static class |
LXAbstractChannel.CrossfadeGroup |
static interface |
LXAbstractChannel.Listener |
static interface |
LXAbstractChannel.MidiListener |
class |
LXAbstractChannel.Profiler |
LXBus.ClipListener
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
protected ModelBuffer |
blendBuffer
This is a local buffer used for transition blending on this channel
|
ObjectParameter<LXBlend> |
blendMode |
protected int[] |
colors |
EnumParameter<LXAbstractChannel.CrossfadeGroup> |
crossfadeGroup
Crossfade group this channel belongs to
|
BooleanParameter |
cueActive
Whether this channel should show in the cue UI.
|
BooleanParameter |
enabled
Whether this channel is enabled.
|
CompoundParameter |
fader |
protected int |
index
The index of this channel in the engine.
|
EnumParameter<LXMidiEngine.Channel> |
midiChannel
Which channel MIDI messages this channel observes
|
BooleanParameter |
midiMonitor
Whether this channel should listen to MIDI events
|
arm, clips, effects, mutableEffects, PATH_EFFECT, selected
model
modulators, profiler
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Modifier | Constructor and Description |
---|---|
protected |
LXAbstractChannel(LX lx,
int index,
String label) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(LXAbstractChannel.Listener listener) |
LXAbstractChannel |
addMidiListener(LXAbstractChannel.MidiListener listener) |
protected LXModulatorComponent.Profiler |
constructProfiler() |
void |
dispose()
Invoked when a component is being removed from the system and will no longer be used at all.
|
int |
getIndex() |
String |
getPath()
Accessor for the path of this object.
|
void |
loop(double deltaMs) |
void |
midiDispatch(LXShortMessage message)
Dispatch a MIDI message to all the active devices on this channel, without
notifying listeners.
|
void |
midiMessage(LXShortMessage message)
Invoked by the MIDI/OSC/Clip engines when this channel should process a
MIDI message.
|
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
void |
removeListener(LXAbstractChannel.Listener listener) |
LXAbstractChannel |
removeMidiListener(LXAbstractChannel.MidiListener listener) |
addClip, addClip, addClipListener, addEffect, addEffect, addListener, constructClip, disposeClips, getClip, getClip, getEffect, getEffect, getEffects, getGroup, handleOscMessage, isChannel, isEmptyGroup, isGroup, isInGroup, load, loop, moveEffect, onModelChanged, reloadEffect, removeClip, removeClip, removeClipListener, removeEffect, removeListener, save, setMixer, stopClips
getModel, setModel
addModulator, addModulator, addModulator, getModulator, getModulators, moveModulator, removeModulator, startModulator
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, 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
protected int index
protected final ModelBuffer blendBuffer
protected int[] colors
public final BooleanParameter enabled
public final EnumParameter<LXAbstractChannel.CrossfadeGroup> crossfadeGroup
public final BooleanParameter cueActive
public final CompoundParameter fader
public final BooleanParameter midiMonitor
public final EnumParameter<LXMidiEngine.Channel> midiChannel
public final ObjectParameter<LXBlend> blendMode
protected LXModulatorComponent.Profiler constructProfiler()
constructProfiler
in class LXBus
public LXAbstractChannel addMidiListener(LXAbstractChannel.MidiListener listener)
public LXAbstractChannel removeMidiListener(LXAbstractChannel.MidiListener listener)
public String getPath()
LXComponent
getPath
in interface LXPath
getPath
in class LXComponent
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic void midiMessage(LXShortMessage message)
message
- Message to processpublic void midiDispatch(LXShortMessage message)
message
- Messagepublic void loop(double deltaMs)
loop
in interface LXLoopTask
loop
in class LXBus
public final void addListener(LXAbstractChannel.Listener listener)
public final void removeListener(LXAbstractChannel.Listener listener)
public 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.LX library by Mark C. Slee. © 2012-2020