Safe Haskell | Safe-Inferred |
---|
Cmds to add notes to a note track.
This module is sister to Derive.Note since it edits events that Derive.Note parses.
Note events are usually given a duration of the current time step. If a "trigger only" instrument (e.g. percussion) is in scope, they are created with zero duration. Also, starting a raw edit with space will create a zero duration event.
Synopsis
- data ControlTrack = ControlTrack {}
- cmd_val_edit :: Cmd.M m => Msg.Msg -> m Cmd.Status
- cmd_method_edit :: Cmd.M m => Msg.Msg -> m Cmd.Status
Documentation
data ControlTrack Source #
A control track belonging to the note track. This can be a pitch track, or a dyn track.
Instances
Show ControlTrack Source # | |
Defined in Cmd.NoteTrack showsPrec :: Int -> ControlTrack -> ShowS # show :: ControlTrack -> String # showList :: [ControlTrack] -> ShowS # | |
Eq ControlTrack Source # | |
Defined in Cmd.NoteTrack (==) :: ControlTrack -> ControlTrack -> Bool # (/=) :: ControlTrack -> ControlTrack -> Bool # |
cmd_val_edit :: Cmd.M m => Msg.Msg -> m Cmd.Status Source #
The val edit for note tracks edits its pitch track (possibly creating one if necessary), and creates a blank event on the note track. It may also edit multiple pitch tracks for chords, or record velocity in addition to pitch.
If I'm in chord mode, try to find the next track and put notes there. If there is no appropriate next track, the cmd will throw an error.
cmd_method_edit :: Cmd.M m => Msg.Msg -> m Cmd.Status Source #
Method edit is redirected to the pitch track, creating one if necessary.