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 enum
static enum
Nested classes/interfaces inherited from class heronarts.lx.midi.surface.LXMidiSurface
LXMidiSurface.Bidirectional, LXMidiSurface.DeviceName, LXMidiSurface.Name
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
final BooleanParameter
static final int
protected final MixerSurface
static final int
static final int
static final int
static final double
static final int
static final int
static final int
static final int
Fields inherited from class heronarts.lx.midi.surface.LXMidiSurface
connected, destinationDevice, enabled, KEY_CLASS, KEY_NAME, KEY_SETTINGS, KEY_STATE, lx, mutableSettings, mutableState, settings, sourceDevice, state
Fields 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, presetFile
Fields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dispose()
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.LedDefinitions
protected abstract heronarts.lx.midi.surface.APCminiSurface.NoteDefinitions
void
noteOffReceived
(MidiNote note) void
noteOnReceived
(MidiNoteOn note) protected void
onEnable
(boolean on) Subclasses may override, invoked automatically when surface is enabled/disabled.void
Subclasses are free to override this if desired.protected void
Subclasses 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, sysexReceived
Methods 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface heronarts.lx.midi.LXMidiListener
midiPanicReceived
Methods 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: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 interfaceLXParameterListener
- Overrides:
onParameterChanged
in classLXMidiSurface
- 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 classLXMidiSurface
- 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 classLXMidiSurface
-
noteOnReceived
- Specified by:
noteOnReceived
in interfaceLXMidiListener
- Overrides:
noteOnReceived
in classLXMidiSurface
-
noteOffReceived
- Specified by:
noteOffReceived
in interfaceLXMidiListener
- Overrides:
noteOffReceived
in classLXMidiSurface
-
controlChangeReceived
- Specified by:
controlChangeReceived
in interfaceLXMidiListener
- Overrides:
controlChangeReceived
in classLXMidiSurface
-
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 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:
dispose
in classLXMidiSurface
-