Class MIDIDevice
java.lang.Object
io.github.roboblazers7617.buttonbox.midi.MIDIDevice
A wrapper for
MidiDevices that combines recieving and transmitting objects
into one object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the MIDIRouter assigned to this device.voidsend(MidiMessage message) Sends a message to this device.
-
Constructor Details
-
MIDIDevice
Creates a MIDIDevice.- Parameters:
rxDevice-MidiDeviceto use for receiving messagestxDevice-MidiDeviceto use for transmitting messages- Throws:
MidiUnavailableException- Thrown when the rxDevice or txDevice is unavailable.- Implementation Note:
- Provided devices must already be opened.
-
-
Method Details
-
send
Sends a message to this device.- Parameters:
message- The message to send.
-
getRouter
Gets the MIDIRouter assigned to this device.- Returns:
- The MIDIRouter assigned to this device.
-