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 classstatic classstatic classstatic classNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.RenamableNested 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_PATTERNFields 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, presetFileFields 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.booleanbooleaninsertEvent(Cursor cursor, double normalized) booleanbooleanprotected ParameterClipEventloadEvent(LX lx, JsonObject eventObj) protected ParameterClipLaneprotected voidreverseEvents(List<ParameterClipEvent> events) voidsave(LX lx, JsonObject obj) Serializes the LX component.protected voidsetEventNormalized(ParameterClipEvent event, double normalized) voidsetEventsNormalized(Map<ParameterClipEvent, Double> normalized) booleanprotected ParameterClipEventstitchEvent(ParameterClipEvent prior, ParameterClipEvent next, Cursor cursor) protected ParameterClipEventstitchInner(List<ParameterClipEvent> events, Cursor cursor, int stitchIndex, boolean isMin, boolean force) protected intstitchInsertIfNeeded(List<ParameterClipEvent> events, ParameterClipEvent stitch, boolean after) protected ParameterClipEventstitchOuter(List<ParameterClipEvent> events, Cursor cursor, int rightIndex) protected booleanstitchRemoveIfRedundant(List<ParameterClipEvent> events, ParameterClipEvent stitch, int index) protected ParameterClipEventstitchSelectionMax(List<ParameterClipEvent> originalEvents, List<ParameterClipEvent> modifiedEvents, Cursor selectionMax, int stitchIndex, boolean force) protected ParameterClipEventstitchSelectionMin(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, setEventsCursorsMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
parameter
-
-
Method Details
-
getLabel
Description copied from class:LXComponentAccessor for the user-facing label of this component. Objects that implement theLXComponent.Renamableinterface may allow the user to change this value.- Specified by:
getLabelin interfaceLXPath- Specified by:
getLabelin classLXClipLane<ParameterClipEvent>- Returns:
- Label for this component
-
shouldRecordParameterChange
-
hasStitching
public boolean hasStitching() -
hasInterpolation
public boolean hasInterpolation() -
isStepped
public boolean isStepped() -
setEventNormalized
- Overrides:
setEventNormalizedin classLXClipLane<ParameterClipEvent>
-
reverseEvents
- Overrides:
reverseEventsin 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:
stitchInnerin classLXClipLane<ParameterClipEvent>
-
stitchSelectionMin
protected ParameterClipEvent stitchSelectionMin(List<ParameterClipEvent> originalEvents, List<ParameterClipEvent> modifiedEvents, Cursor selectionMin, int stitchIndex, boolean force) - Overrides:
stitchSelectionMinin classLXClipLane<ParameterClipEvent>
-
stitchSelectionMax
protected ParameterClipEvent stitchSelectionMax(List<ParameterClipEvent> originalEvents, List<ParameterClipEvent> modifiedEvents, Cursor selectionMax, int stitchIndex, boolean force) - Overrides:
stitchSelectionMaxin classLXClipLane<ParameterClipEvent>
-
stitchOuter
protected ParameterClipEvent stitchOuter(List<ParameterClipEvent> events, Cursor cursor, int rightIndex) - Overrides:
stitchOuterin classLXClipLane<ParameterClipEvent>
-
stitchInsertIfNeeded
protected int stitchInsertIfNeeded(List<ParameterClipEvent> events, ParameterClipEvent stitch, boolean after) - Overrides:
stitchInsertIfNeededin classLXClipLane<ParameterClipEvent>
-
stitchRemoveIfRedundant
protected boolean stitchRemoveIfRedundant(List<ParameterClipEvent> events, ParameterClipEvent stitch, int index) - Overrides:
stitchRemoveIfRedundantin classLXClipLane<ParameterClipEvent>
-
insertEvent
-
setEventsNormalized
-
recordParameterEvent
-
isInPlayback
public boolean isInPlayback() -
save
Description copied from class:LXComponentSerializes 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:
savein interfaceLXSerializable- Overrides:
savein classLXClipLane<ParameterClipEvent>- Parameters:
lx- LX instanceobj- Object to serialize into
-
loadEvent
- Specified by:
loadEventin classLXClipLane<ParameterClipEvent>
-