Package heronarts.lx.clip
Class PatternClipLane
- All Implemented Interfaces:
LXPath,LXSerializable,LXPatternEngine.Listener,LXParameterListener
public class PatternClipLane
extends LXClipLane<PatternClipEvent>
implements LXPatternEngine.Listener
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Author, LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.Renamable, LXComponent.TagsNested 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 TypeMethodDescriptionvoiddispose()Invoked when a component is being removed from the system and will no longer be used at all.findEventIndices(LXPattern pattern) Return a list of the indices of events in this clip lane that reference the given patterngetLabel()Accessor for the user-facing label of this component.getPath()Accessor for the path of this object.protected PatternClipEventloadEvent(LX lx, JsonObject eventObj) voidpatternRemoved(LXPatternEngine channel, LXPattern pattern) voidsave(LX lx, JsonObject obj) Serializes the LX component.voidupdate(LX lx, JsonObject obj, PatternRack rack) 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, reverseEvents, setEventNormalized, setEventsCursors, stitchInner, stitchInsertIfNeeded, stitchOuter, stitchRemoveIfRedundant, stitchSelectionMax, stitchSelectionMinMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addInternalParameters, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, getCategory, getChild, getComponentDescription, getComponentName, getComponentName, getComponentName, getDescription, getId, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, handleOscMessage, hasParameter, isSnapshotControl, 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, isDescendantMethods inherited from interface heronarts.lx.mixer.LXPatternEngine.Listener
patternAdded, patternDidChange, patternEnabled, patternMoved, patternWillChange
-
Field Details
-
engine
-
KEY_RACK
- See Also:
-
-
Method Details
-
patternRemoved
- Specified by:
patternRemovedin interfaceLXPatternEngine.Listener
-
findEventIndices
Return a list of the indices of events in this clip lane that reference the given pattern- Parameters:
pattern- Pattern- Returns:
- List of indices that reference this pattern, or null if there are none
-
getPath
Description copied from class:LXComponentAccessor for the path of this object. Returns the path this component was registered with. Some subclasses may override this if path structure is dynamic.- Specified by:
getPathin interfaceLXPath- Overrides:
getPathin classLXComponent- Returns:
- path of this component relative to its parent
-
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<PatternClipEvent>- Returns:
- Label for this component
-
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<PatternClipEvent>- Parameters:
lx- LX instanceobj- Object to serialize into
-
loadEvent
- Specified by:
loadEventin classLXClipLane<PatternClipEvent>
-
update
-
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 classLXComponent
-