Class MIDIRouter

java.lang.Object
io.github.roboblazers7617.buttonbox.midi.MIDIRouter
All Implemented Interfaces:
AutoCloseable, Receiver

public class MIDIRouter extends Object implements Receiver
Receiver that routes MIDI messages to the MIDIAddresses assigned to it.
  • Constructor Details

    • MIDIRouter

      public MIDIRouter()
  • Method Details

    • send

      public void send(MidiMessage msg, long timeStamp)
      Specified by:
      send in interface Receiver
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Receiver
    • addAddress

      public void addAddress(MIDIAddress address)
      Adds an address to which MIDI messages will be routed to.
      Parameters:
      address - The address to add to the MIDIRouter.