java.lang.Object
io.github.roboblazers7617.buttonbox.midi.MIDIUtil

public class MIDIUtil extends Object
Some static utility functions for working with MIDI devices.
  • Constructor Details

    • MIDIUtil

      public MIDIUtil()
  • Method Details

    • getDeviceByName

      public static Optional<MIDIDevice> getDeviceByName(String rxName, String txName)
      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

      public static Optional<MIDIDevice> getDeviceByName(String name)
      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: