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

Cmd.Repl.LTrack

Description

Cmds for track level operations.

Synopsis

Documentation

list :: Cmd.CmdL [(TrackId, Int)] Source #

List all tracks, along with the number of blocks each one appears in.

orphans :: Cmd.CmdL [TrackId] Source #

Tracks that don't appear in any block.

remove_empty :: BlockId -> Cmd.CmdL () Source #

Remove tracks with no events from the given block.

map_titles :: (Text -> Text) -> Cmd.CmdL () Source #

Transform all track titles.

find :: Cmd.M m => Text -> m [(TrackId, Text)] Source #

Find all tracks with the given string in their title. You can use Ui.blocks_with_track_id to find the blocks with the tracks, and map_titles or replace to change the titles.

find_f :: Cmd.M m => (Text -> Bool) -> m [(TrackId, Text)] Source #

manipulation

duplicate :: Ui.M m => BlockId -> Types.TrackNum -> BlockId -> Types.TrackNum -> m () Source #

Duplicate a track from one block to another. The underlying track is the same, so edits in one of its occurrances will be reflected in all of its blocks.

events

to_notation :: TrackTime -> TrackTime -> TrackTime -> [Event.Event] -> Text Source #

Reduce event text to notation at a fixed time increment. It only works out if each event only has a single letter.

format_measures :: String -> [String] Source #

4 measures per line, 16 time steps per measure.

strip controls

waveform

signal render

nline :: Text -> Cmd.CmdL () Source #

Pass "#" for the pitch track.

note_render Source #

Arguments

:: Cmd.M m 
=> (Maybe Track.RenderSource -> Track.RenderStyle) 
-> Text

Either a control name, or a #-prefixed pitch name.

-> m ()