Package heronarts.lx.midi.surface
Class APCminiSurface
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.midi.surface.LXMidiSurface
heronarts.lx.midi.surface.APCminiSurface
- All Implemented Interfaces:
LXPath,LXSerializable,LXMidiListener,LXMidiSurface.Bidirectional,LXParameterListener
- Direct Known Subclasses:
APCmini,APCminiMk2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from class heronarts.lx.midi.surface.LXMidiSurface
LXMidiSurface.Bidirectional, LXMidiSurface.DeviceName, LXMidiSurface.NameNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.RenamableNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intfinal BooleanParameterstatic final intprotected final MixerSurfacestatic final intstatic final intstatic final intstatic final doublestatic final intstatic final intstatic final intstatic final intFields inherited from class heronarts.lx.midi.surface.LXMidiSurface
connected, destinationDevice, enabled, KEY_CLASS, KEY_NAME, KEY_SETTINGS, KEY_STATE, lx, mutableSettings, mutableState, settings, sourceDevice, stateFields inherited from class heronarts.lx.LXComponent
childArrays, children, internalParameters, KEY_CHILDREN, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFileFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddispose()Invoked when a component is being removed from the system and will no longer be used at all.protected abstract heronarts.lx.midi.surface.APCminiSurface.LedDefinitionsprotected abstract heronarts.lx.midi.surface.APCminiSurface.NoteDefinitionsvoidnoteOffReceived(MidiNote note) voidnoteOnReceived(MidiNoteOn note) protected voidonEnable(boolean on) Subclasses may override, invoked automatically when surface is enabled/disabled.voidSubclasses are free to override this if desired.protected voidSubclasses may override, invoked when the control surface was disconnected but has now reconnected, while still being in the enabled state.Methods inherited from class heronarts.lx.midi.surface.LXMidiSurface
addSetting, addState, aftertouchReceived, getDeviceName, getDeviceName, getInput, getName, getOutput, getRemoteControlLength, getRemoteControlStart, getSurfaceName, getSurfaceName, hasRememberFlag, initializeDefaultIO, isRemoteControlAux, load, matches, pitchBendReceived, programChangeReceived, save, sendControlChange, sendNoteOn, sendSysex, setRememberFlag, sysexReceivedMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, getCategory, getChild, getComponentDescription, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isValidOscParameter, loadParameters, loadPreset, removeParameter, removeParameter, removeParameter, removeParameter, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.midi.LXMidiListener
midiPanicReceivedMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
NUM_CHANNELS
public static final int NUM_CHANNELS- See Also:
-
PARAMETER_INCREMENT_AMOUNT
public static final double PARAMETER_INCREMENT_AMOUNT- See Also:
-
CHANNEL_FADER
public static final int CHANNEL_FADER- See Also:
-
CHANNEL_FADER_MAX
public static final int CHANNEL_FADER_MAX- See Also:
-
MASTER_FADER
public static final int MASTER_FADER- See Also:
-
CLIP_LAUNCH
public static final int CLIP_LAUNCH- See Also:
-
CLIP_LAUNCH_ROWS
public static final int CLIP_LAUNCH_ROWS- See Also:
-
CLIP_LAUNCH_COLUMNS
public static final int CLIP_LAUNCH_COLUMNS- See Also:
-
CLIP_LAUNCH_NUM
public static final int CLIP_LAUNCH_NUM- See Also:
-
CLIP_LAUNCH_MAX
public static final int CLIP_LAUNCH_MAX- See Also:
-
PARAMETER_COLUMNS
public static final int PARAMETER_COLUMNS- See Also:
-
PARAMETER_COLUMN_STRIDE
public static final int PARAMETER_COLUMN_STRIDE- See Also:
-
PARAMETER_ROWS
public static final int PARAMETER_ROWS- See Also:
-
PARAMETER_ROW_STRIDE
public static final int PARAMETER_ROW_STRIDE- See Also:
-
PARAMETER_NUM
public static final int PARAMETER_NUM- See Also:
-
PARAMETER_START
public static final int PARAMETER_START- See Also:
-
MIDI_CHANNEL_SINGLE
public static final int MIDI_CHANNEL_SINGLE- See Also:
-
LED_OFF
public static final int LED_OFF- See Also:
-
LED_ON
public static final int LED_ON- See Also:
-
LED_BLINK
public static final int LED_BLINK- See Also:
-
mixerSurface
-
masterFaderEnabled
-
faderMode
-
-
Constructor Details
-
APCminiSurface
-
-
Method Details
-
getNoteDefinitions
protected abstract heronarts.lx.midi.surface.APCminiSurface.NoteDefinitions getNoteDefinitions() -
getLedDefinitions
protected abstract heronarts.lx.midi.surface.APCminiSurface.LedDefinitions getLedDefinitions() -
onParameterChanged
Description copied from class:LXComponentSubclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.- Specified by:
onParameterChangedin interfaceLXParameterListener- Overrides:
onParameterChangedin classLXMidiSurface- Parameters:
p- Parameter that has a value change
-
onEnable
protected void onEnable(boolean on) Description copied from class:LXMidiSurfaceSubclasses 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:
onEnablein classLXMidiSurface- Parameters:
on- Whether surface is enabled
-
onReconnect
protected void onReconnect()Description copied from class:LXMidiSurfaceSubclasses may override, invoked when the control surface was disconnected but has now reconnected, while still being in the enabled state.- Overrides:
onReconnectin classLXMidiSurface
-
noteOnReceived
- Specified by:
noteOnReceivedin interfaceLXMidiListener- Overrides:
noteOnReceivedin classLXMidiSurface
-
noteOffReceived
- Specified by:
noteOffReceivedin interfaceLXMidiListener- Overrides:
noteOffReceivedin classLXMidiSurface
-
controlChangeReceived
- Specified by:
controlChangeReceivedin interfaceLXMidiListener- Overrides:
controlChangeReceivedin classLXMidiSurface
-
dispose
public void dispose()Description copied from class:LXComponentInvoked 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 callsuper.dispose()at the appropriate time to perform the basic cleanup, which may need to happen either before or after cleaning up other objects.- Overrides:
disposein classLXMidiSurface
-