Package heronarts.lx.clip
Class ParameterClipLane
- All Implemented Interfaces:
LXPath
,LXSerializable
,LXParameterListener
- Direct Known Subclasses:
ParameterClipLane.Boolean
,ParameterClipLane.Discrete
,ParameterClipLane.Normalized
,ParameterClipLane.Trigger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
FieldsFields inherited from class heronarts.lx.clip.LXClipLane
clip, events, KEY_LANE_TYPE, mutableEvents, onChange, overdubActive, uiExpanded, uiHeight, uiMaximized, VALUE_LANE_TYPE_MIDI_NOTE, VALUE_LANE_TYPE_PARAMETER, VALUE_LANE_TYPE_PATTERN
Fields inherited from class heronarts.lx.LXComponent
childArrays, children, internalParameters, KEY_CHILDREN, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, lx, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFile
Fields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH
-
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Accessor for the user-facing label of this component.boolean
boolean
insertEvent
(Cursor cursor, double normalized) boolean
boolean
protected ParameterClipEvent
loadEvent
(LX lx, JsonObject eventObj) protected ParameterClipLane
protected void
reverseEvents
(List<ParameterClipEvent> events) void
save
(LX lx, JsonObject obj) Serializes the LX component.protected void
setEventNormalized
(ParameterClipEvent event, double normalized) void
setEventsNormalized
(Map<ParameterClipEvent, Double> normalized) boolean
protected ParameterClipEvent
stitchEvent
(ParameterClipEvent prior, ParameterClipEvent next, Cursor cursor) protected ParameterClipEvent
stitchInner
(List<ParameterClipEvent> events, Cursor cursor, int stitchIndex, boolean isMin, boolean force) protected int
stitchInsertIfNeeded
(List<ParameterClipEvent> events, ParameterClipEvent stitch, boolean after) protected ParameterClipEvent
stitchOuter
(List<ParameterClipEvent> events, Cursor cursor, int rightIndex) protected boolean
stitchRemoveIfRedundant
(List<ParameterClipEvent> events, ParameterClipEvent stitch, int index) protected ParameterClipEvent
stitchSelectionMax
(List<ParameterClipEvent> originalEvents, List<ParameterClipEvent> modifiedEvents, Cursor selectionMax, int stitchIndex, boolean force) protected ParameterClipEvent
stitchSelectionMin
(List<ParameterClipEvent> originalEvents, List<ParameterClipEvent> modifiedEvents, Cursor selectionMin, int stitchIndex, boolean force) Methods inherited from class heronarts.lx.clip.LXClipLane
_insertEvent, beginLoadEvents, cursorInsertIndex, cursorInsertIndex, CursorOp, cursorPlayIndex, cursorPlayIndex, endLoadEvents, eventIndex, eventIndex, eventIterator, eventIterator, eventIterator, eventIterator, getIndex, getPreviousEvent, getPreviousEvent, getPreviousEvent, getUIThreadEvents, insertEvent, load, moveEvent, recordEvent, removeEvent, removeEvents, removeRange, removeRange, setEventsCursors
Methods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, dispose, getCategory, getChild, getComponentDescription, getComponentName, getComponentName, getComponentName, getDescription, getId, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isValidOscParameter, loadParameters, loadPreset, onParameterChanged, 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.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
parameter
-
-
Method Details
-
getLabel
Description copied from class:LXComponent
Accessor for the user-facing label of this component. Objects that implement theLXComponent.Renamable
interface may allow the user to change this value.- Specified by:
getLabel
in interfaceLXPath
- Specified by:
getLabel
in classLXClipLane<ParameterClipEvent>
- Returns:
- Label for this component
-
shouldRecordParameterChange
-
hasStitching
public boolean hasStitching() -
hasInterpolation
public boolean hasInterpolation() -
isStepped
public boolean isStepped() -
setEventNormalized
- Overrides:
setEventNormalized
in classLXClipLane<ParameterClipEvent>
-
reverseEvents
- Overrides:
reverseEvents
in classLXClipLane<ParameterClipEvent>
-
stitchEvent
protected ParameterClipEvent stitchEvent(ParameterClipEvent prior, ParameterClipEvent next, Cursor cursor) -
stitchInner
protected ParameterClipEvent stitchInner(List<ParameterClipEvent> events, Cursor cursor, int stitchIndex, boolean isMin, boolean force) - Overrides:
stitchInner
in classLXClipLane<ParameterClipEvent>
-
stitchSelectionMin
protected ParameterClipEvent stitchSelectionMin(List<ParameterClipEvent> originalEvents, List<ParameterClipEvent> modifiedEvents, Cursor selectionMin, int stitchIndex, boolean force) - Overrides:
stitchSelectionMin
in classLXClipLane<ParameterClipEvent>
-
stitchSelectionMax
protected ParameterClipEvent stitchSelectionMax(List<ParameterClipEvent> originalEvents, List<ParameterClipEvent> modifiedEvents, Cursor selectionMax, int stitchIndex, boolean force) - Overrides:
stitchSelectionMax
in classLXClipLane<ParameterClipEvent>
-
stitchOuter
protected ParameterClipEvent stitchOuter(List<ParameterClipEvent> events, Cursor cursor, int rightIndex) - Overrides:
stitchOuter
in classLXClipLane<ParameterClipEvent>
-
stitchInsertIfNeeded
protected int stitchInsertIfNeeded(List<ParameterClipEvent> events, ParameterClipEvent stitch, boolean after) - Overrides:
stitchInsertIfNeeded
in classLXClipLane<ParameterClipEvent>
-
stitchRemoveIfRedundant
protected boolean stitchRemoveIfRedundant(List<ParameterClipEvent> events, ParameterClipEvent stitch, int index) - Overrides:
stitchRemoveIfRedundant
in classLXClipLane<ParameterClipEvent>
-
insertEvent
-
setEventsNormalized
-
recordParameterEvent
-
isInPlayback
public boolean isInPlayback() -
save
Description copied from class:LXComponent
Serializes the LX component. By default, all internal and user-facing parameters are serialized, as well as any explicitly registered child components. Note that child arrays are not serialized, or any other dynamic components. Subclasses may override to perform more saving, and are expected to callsuper.save(lx, obj)
at the appropriate time.- Specified by:
save
in interfaceLXSerializable
- Overrides:
save
in classLXClipLane<ParameterClipEvent>
- Parameters:
lx
- LX instanceobj
- Object to serialize into
-
loadEvent
- Specified by:
loadEvent
in classLXClipLane<ParameterClipEvent>
-