Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Cmd.NoteTrack

Description

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

Documentation

data ControlTrack Source #

A control track belonging to the note track. This can be a pitch track, or a dyn track.

Instances

Instances details
Show ControlTrack Source # 
Instance details

Defined in Cmd.NoteTrack

Eq ControlTrack Source # 
Instance details

Defined in Cmd.NoteTrack

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.