Class LXMidiInput

java.lang.Object
heronarts.lx.midi.LXMidiDevice
heronarts.lx.midi.LXMidiInput
All Implemented Interfaces:
LXSerializable

public class LXMidiInput extends LXMidiDevice implements LXSerializable
  • Field Details

  • Method Details

    • close

      protected void close()
      Specified by:
      close in class LXMidiDevice
    • onEnabled

      protected void onEnabled(boolean enabled)
      Description copied from class: LXMidiDevice
      Subclasses have this method invoked when the enabled state changes.
      Specified by:
      onEnabled in class LXMidiDevice
      Parameters:
      enabled - Enabled state, if newly set to true, attempt to open
    • addListener

      public LXMidiInput addListener(LXMidiListener listener)
      Registers a listener to this MIDI input
      Parameters:
      listener - Listener to receive callbacks
      Returns:
      this
    • removeListener

      public LXMidiInput removeListener(LXMidiListener listener)
      Removes a listener to this MIDI input
      Parameters:
      listener - Listener to stop receiving callbacks
      Returns:
      this
    • save

      public void save(LX lx, JsonObject object)
      Description copied from interface: LXSerializable
      Serializes this instance into the JSON object
      Specified by:
      save in interface LXSerializable
      Parameters:
      lx - LX instance
      object - Object to serialize into
    • load

      public void load(LX lx, JsonObject object)
      Description copied from interface: LXSerializable
      Restores this instance from a JSON object
      Specified by:
      load in interface LXSerializable
      Parameters:
      lx - LX instance
      object - Object to deserialize