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.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal LXAbstractChannelClip
final MutableParameter
final MutableParameter
Zoom 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_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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
beginLoadEvents
(List<MidiNoteClipEvent> loadEvents) void
editNote
(MidiNoteClipEvent editNoteOn, int toPitch, int toVelocity, Cursor toStart, Cursor toEnd, List<MidiNoteClipEvent> restoreOriginal, boolean checkDelete, boolean cursorMoved) protected void
endLoadEvents
(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) boolean
protected MidiNoteClipEvent
loadEvent
(LX lx, JsonObject eventObj) protected void
recordNote
(MidiNote note) removeNote
(MidiNoteClipEvent note) boolean
removeRange
(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, stitchSelectionMin
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, 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
-
clip
-
uiZoom
Zoom is specified as multiple of lane height -
uiOffset
-
-
Constructor Details
-
MidiNoteClipLane
-
-
Method Details
-
getPath
Description copied from class:LXComponent
Accessor 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:
getPath
in interfaceLXPath
- Overrides:
getPath
in classLXComponent
- Returns:
- path of this component relative to its parent
-
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<MidiNoteClipEvent>
- Returns:
- Label for this component
-
removeNote
-
removeRange
- Overrides:
removeRange
in classLXClipLane<MidiNoteClipEvent>
-
recordNote
-
beginLoadEvents
- Overrides:
beginLoadEvents
in classLXClipLane<MidiNoteClipEvent>
-
loadEvent
- Specified by:
loadEvent
in classLXClipLane<MidiNoteClipEvent>
-
endLoadEvents
- Overrides:
endLoadEvents
in 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)
-