Package heronarts.lx.clip
Class MidiNoteClipLane
- All Implemented Interfaces:
LXPath,LXSerializable,LXParameterListener
-
Nested Class Summary
Nested 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
FieldsModifier and TypeFieldDescriptionfinal LXAbstractChannelClipfinal MutableParameterfinal MutableParameterZoom is specified as multiple of lane heightFields inherited from class heronarts.lx.clip.LXClipLane
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeginLoadEvents(List<MidiNoteClipEvent> loadEvents) voideditNote(MidiNoteClipEvent editNoteOn, int toPitch, int toVelocity, Cursor toStart, Cursor toEnd, List<MidiNoteClipEvent> restoreOriginal, boolean checkDelete, boolean cursorMoved) protected voidendLoadEvents(List<MidiNoteClipEvent> loadEvents) getLabel()Accessor for the user-facing label of this component.getPath()Accessor for the path of this object.insertNote(int pitch, int velocity, Cursor from, Cursor to) booleanprotected MidiNoteClipEventloadEvent(LX lx, JsonObject eventObj) protected voidrecordNote(MidiNote note) removeNote(MidiNoteClipEvent note) booleanremoveRange(Cursor from, Cursor to) Methods inherited from class heronarts.lx.clip.LXClipLane
_insertEvent, cursorInsertIndex, cursorInsertIndex, CursorOp, cursorPlayIndex, cursorPlayIndex, eventIndex, eventIndex, eventIterator, eventIterator, eventIterator, eventIterator, getIndex, getPreviousEvent, getPreviousEvent, getPreviousEvent, getUIThreadEvents, insertEvent, load, moveEvent, recordEvent, removeEvent, removeEvents, removeRange, reverseEvents, save, setEventNormalized, setEventsCursors, stitchInner, stitchInsertIfNeeded, stitchOuter, stitchRemoveIfRedundant, stitchSelectionMax, stitchSelectionMinMethods 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, 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
-
clip
-
uiZoom
Zoom is specified as multiple of lane height -
uiOffset
-
-
Constructor Details
-
MidiNoteClipLane
-
-
Method Details
-
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<MidiNoteClipEvent>- Returns:
- Label for this component
-
removeNote
-
removeRange
- Overrides:
removeRangein classLXClipLane<MidiNoteClipEvent>
-
recordNote
-
beginLoadEvents
- Overrides:
beginLoadEventsin classLXClipLane<MidiNoteClipEvent>
-
loadEvent
- Specified by:
loadEventin classLXClipLane<MidiNoteClipEvent>
-
endLoadEvents
- Overrides:
endLoadEventsin classLXClipLane<MidiNoteClipEvent>
-
isClear
-
insertNote
-
editNote
public void editNote(MidiNoteClipEvent editNoteOn, int toPitch, int toVelocity, Cursor toStart, Cursor toEnd, List<MidiNoteClipEvent> restoreOriginal, boolean checkDelete, boolean cursorMoved)
-