Package heronarts.lx.command
Class LXCommand.Clip.Event.Midi.EditNote
java.lang.Object
heronarts.lx.command.LXCommand
heronarts.lx.command.LXCommand.Clip.Event.Midi.EditNote
- Direct Known Subclasses:
LXCommand.Clip.Event.Midi.InsertNote
- Enclosing class:
LXCommand.Clip.Event.Midi
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.command.LXCommand
LXCommand.Channel, LXCommand.Clip, LXCommand.ComponentReference<T extends LXComponent>, LXCommand.Device, LXCommand.InvalidCommandException, LXCommand.Midi, LXCommand.Mixer, LXCommand.Modulation, LXCommand.Osc, LXCommand.Palette, LXCommand.Parameter, LXCommand.ParameterReference<T extends LXParameter>, LXCommand.RemoveComponent, LXCommand.Snapshots, LXCommand.Structure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LXCommand.ComponentReference
<MidiNoteClipLane> protected final Cursor
protected final int
protected final Cursor
protected final int
protected int
protected List
<MidiNoteClipEvent> -
Constructor Summary
ConstructorsConstructorDescriptionEditNote
(MidiNoteClipLane clipLane, int pitch, int velocity, Cursor start, Cursor end) EditNote
(MidiNoteClipLane clipLane, MidiNoteClipEvent noteOn) -
Method Summary
Modifier and TypeMethodDescriptionShort description of a command, to explain it to the uservoid
Perform the given commandprotected void
setNote
(MidiNoteClipEvent midiNote) void
Undo the command, after it has been performedupdateCursor
(Cursor start, Cursor end) updatePitch
(int pitch) updateVelocity
(int velocity)
-
Field Details
-
clipLane
-
noteOnIndex
protected int noteOnIndex -
originalEvents
-
fromStart
-
fromEnd
-
fromPitch
protected final int fromPitch -
fromVelocity
protected final int fromVelocity
-
-
Constructor Details
-
EditNote
-
EditNote
-
-
Method Details
-
setNote
-
getDescription
Description copied from class:LXCommand
Short description of a command, to explain it to the user- Specified by:
getDescription
in classLXCommand
- Returns:
- short description of command
-
updatePitch
-
updateVelocity
-
updateCursor
-
update
-
update
-
perform
Description copied from class:LXCommand
Perform the given command- Specified by:
perform
in classLXCommand
- Parameters:
lx
- LX instance- Throws:
LXCommand.InvalidCommandException
- if the command is invalid
-
undo
Description copied from class:LXCommand
Undo the command, after it has been performed- Specified by:
undo
in classLXCommand
- Parameters:
lx
- LX instance- Throws:
LXCommand.InvalidCommandException
- if the command is invalid
-