Class APCminiSurface

All Implemented Interfaces:
LXPath, LXSerializable, LXMidiListener, LXMidiSurface.Bidirectional, LXParameterListener
Direct Known Subclasses:
APCmini, APCminiMk2

public abstract class APCminiSurface extends LXMidiSurface implements LXMidiSurface.Bidirectional
  • Field Details

  • Constructor Details

  • Method Details

    • getNoteDefinitions

      protected abstract heronarts.lx.midi.surface.APCminiSurface.NoteDefinitions getNoteDefinitions()
    • getLedDefinitions

      protected abstract heronarts.lx.midi.surface.APCminiSurface.LedDefinitions getLedDefinitions()
    • onParameterChanged

      public void onParameterChanged(LXParameter p)
      Description copied from class: LXComponent
      Subclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.
      Specified by:
      onParameterChanged in interface LXParameterListener
      Overrides:
      onParameterChanged in class LXMidiSurface
      Parameters:
      p - Parameter that has a value change
    • onEnable

      protected void onEnable(boolean on)
      Description copied from class: LXMidiSurface
      Subclasses may override, invoked automatically when surface is enabled/disabled. This is the typical place to send MIDI messages that configure the state and behavior of a MIDI control surface that has different modes or customization available
      Overrides:
      onEnable in class LXMidiSurface
      Parameters:
      on - Whether surface is enabled
    • onReconnect

      protected void onReconnect()
      Description copied from class: LXMidiSurface
      Subclasses may override, invoked when the control surface was disconnected but has now reconnected, while still being in the enabled state.
      Overrides:
      onReconnect in class LXMidiSurface
    • noteOnReceived

      public void noteOnReceived(MidiNoteOn note)
      Specified by:
      noteOnReceived in interface LXMidiListener
      Overrides:
      noteOnReceived in class LXMidiSurface
    • noteOffReceived

      public void noteOffReceived(MidiNote note)
      Specified by:
      noteOffReceived in interface LXMidiListener
      Overrides:
      noteOffReceived in class LXMidiSurface
    • controlChangeReceived

      public void controlChangeReceived(MidiControlChange cc)
      Specified by:
      controlChangeReceived in interface LXMidiListener
      Overrides:
      controlChangeReceived in class LXMidiSurface
    • dispose

      public void dispose()
      Description copied from class: LXComponent
      Invoked when a component is being removed from the system and will no longer be used at all. This unregisters the component and should free up any resources and parameter listeners. Ideally after this method is called the object should be eligible for garbage collection. Subclasses are generally expected to override this method to handle their particular cleanup work. They should also generally call super.dispose() at the appropriate time to perform the basic cleanup, which may need to happen either before or after cleaning up other objects.
      Overrides:
      dispose in class LXMidiSurface