be.lassi.control.midi
Class MidiEngine
java.lang.Object
be.lassi.control.midi.MidiEngine
public class MidiEngine
- extends java.lang.Object
Performs the communication between the Midi input and output
devices on the physical Midi crontrol device, to keep the state
of device in sync with the state of a Control
object,
and vice versa.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MidiEngine
public MidiEngine(Holder<Control> controlHolder)
- Constructs a new instance.
- Parameters:
control
- our domain model of the control device
addMessageListener
public void addMessageListener(MidiMessageListener listener)
addShowControlMessageListener
public void addShowControlMessageListener(ShowControlMessageListener listener)
close
public void close()
getStatus
public MidiStatus getStatus()
removeMessageListener
public void removeMessageListener(MidiMessageListener listener)
send
public void send(javax.sound.midi.MidiMessage message)
setMidiInputDevice
public void setMidiInputDevice(javax.sound.midi.MidiDevice device)
setMidiOutputDevice
public void setMidiOutputDevice(javax.sound.midi.MidiDevice device)
setShowControlInputDevice
public void setShowControlInputDevice(javax.sound.midi.MidiDevice device)