Class MIDIUtil
java.lang.Object
io.github.roboblazers7617.buttonbox.midi.MIDIUtil
Some static utility functions for working with MIDI devices.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<MIDIDevice>getDeviceByName(String name) Finds a MIDI device by name.static Optional<MIDIDevice>getDeviceByName(String rxName, String txName) Finds a MIDI device by name.
-
Constructor Details
-
MIDIUtil
public MIDIUtil()
-
-
Method Details
-
getDeviceByName
Finds a MIDI device by name.- Parameters:
rxName- The name of the reciever device.txName- The name of the transmitter device.- Returns:
- The found device, or empty if no device was found.
- Implementation Note:
- If multiple devices with the same name exist, the one with the highest index will be returned.
-
getDeviceByName
Finds a MIDI device by name.- Parameters:
name- The name of the MIDI device.- Returns:
- The found device, or empty if no device was found.
- See Also:
-