public class LXMidiInput extends LXMidiDevice implements LXSerializable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
BooleanParameter |
channelEnabled |
BooleanParameter |
controlEnabled |
BooleanParameter |
syncEnabled |
connected, device, enabled, engine
Modifier and Type | Method and Description |
---|---|
LXMidiInput |
addListener(LXMidiListener listener)
Registers a listener to this MIDI input
|
protected void |
close() |
void |
load(LX lx,
JsonObject object)
Restores this instance from a JSON object
|
protected void |
onEnabled(boolean enabled)
Subclasses have this method invoked when the enabled state changes.
|
LXMidiInput |
removeListener(LXMidiListener listener)
Removes a listener to this MIDI input
|
void |
save(LX lx,
JsonObject object)
Serializes this instance into the JSON object
|
getDescription, getName, open
public final BooleanParameter channelEnabled
public final BooleanParameter controlEnabled
public final BooleanParameter syncEnabled
protected void close()
close
in class LXMidiDevice
protected void onEnabled(boolean enabled)
LXMidiDevice
onEnabled
in class LXMidiDevice
enabled
- Enabled state, if newly set to true, attempt to openpublic LXMidiInput addListener(LXMidiListener listener)
listener
- Listener to receive callbackspublic LXMidiInput removeListener(LXMidiListener listener)
listener
- Listener to stop receiving callbackspublic void save(LX lx, JsonObject object)
LXSerializable
save
in interface LXSerializable
lx
- LX instanceobject
- Object to serialize intopublic void load(LX lx, JsonObject object)
LXSerializable
load
in interface LXSerializable
lx
- LX instanceobject
- Object to deserializeLX library by Mark C. Slee. © 2012-2020