public abstract class LXMidiDevice extends Object
Modifier and Type | Field and Description |
---|---|
BooleanParameter |
connected
Whether the MIDI device is connected.
|
protected MidiDevice |
device |
BooleanParameter |
enabled
Whether the midi device is enabled for communication.
|
protected LXMidiEngine |
engine |
Modifier | Constructor and Description |
---|---|
protected |
LXMidiDevice(LXMidiEngine engine,
MidiDevice device) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
close() |
String |
getDescription()
Get a description of this device
|
String |
getName()
Get the name of the device.
|
protected abstract void |
onEnabled(boolean enabled)
Subclasses have this method invoked when the enabled state changes.
|
LXMidiDevice |
open()
Open the device for input or output.
|
protected final LXMidiEngine engine
protected MidiDevice device
public final BooleanParameter enabled
public final BooleanParameter connected
protected LXMidiDevice(LXMidiEngine engine, MidiDevice device)
protected abstract void close()
public final LXMidiDevice open()
public String getName()
public String getDescription()
protected abstract void onEnabled(boolean enabled)
enabled
- Enabled state, if newly set to true, attempt to openLX library by Mark C. Slee. © 2012-2020