Safe Haskell | Safe-Inferred |
---|
Cmds for track level operations.
Synopsis
- list :: Cmd.CmdL [(TrackId, Int)]
- gc :: Cmd.CmdL [TrackId]
- orphans :: Cmd.CmdL [TrackId]
- remove_empty :: BlockId -> Cmd.CmdL ()
- remove_all_empty :: Cmd.CmdL ()
- map_widths :: (Text -> Bool) -> (Types.Width -> Types.Width) -> Cmd.CmdL ()
- map_titles :: (Text -> Text) -> Cmd.CmdL ()
- rename_instruments :: [(Text, Text)] -> Cmd.CmdL ()
- replace :: Text -> Text -> Cmd.CmdL ()
- find :: Cmd.M m => Text -> m [(TrackId, Text)]
- find_f :: Cmd.M m => (Text -> Bool) -> m [(TrackId, Text)]
- duplicate :: Ui.M m => BlockId -> Types.TrackNum -> BlockId -> Types.TrackNum -> m ()
- events :: Ui.M m => TrackId -> m [Event.Event]
- selected :: Cmd.M m => m [Event.Event]
- events_range :: TrackId -> ScoreTime -> ScoreTime -> Cmd.CmdL [Event.Event]
- selected_notation :: Cmd.M m => TrackTime -> m Text
- to_notation :: TrackTime -> TrackTime -> TrackTime -> [Event.Event] -> Text
- format_measures :: String -> [String]
- drop_dups :: Cmd.CmdL ()
- waveform :: Cmd.CmdT IO ()
- toggle_waveform :: TrackId -> Cmd.CmdT IO ()
- filled :: Cmd.CmdL ()
- line :: Cmd.CmdL ()
- note_pitch :: Cmd.CmdL ()
- nline :: Text -> Cmd.CmdL ()
- nfilled :: Text -> Cmd.CmdL ()
- note_render :: Cmd.M m => (Maybe Track.RenderSource -> Track.RenderStyle) -> Text -> m ()
- no_render :: Cmd.CmdL ()
Documentation
list :: Cmd.CmdL [(TrackId, Int)] Source #
List all tracks, along with the number of blocks each one appears in.
remove_empty :: BlockId -> Cmd.CmdL () Source #
Remove tracks with no events from the given block.
remove_all_empty :: Cmd.CmdL () Source #
map_widths :: (Text -> Bool) -> (Types.Width -> Types.Width) -> Cmd.CmdL () Source #
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.
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
selected :: Cmd.M m => m [Event.Event] Source #
events_range :: TrackId -> ScoreTime -> ScoreTime -> Cmd.CmdL [Event.Event] Source #
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
note_pitch :: Cmd.CmdL () Source #
:: Cmd.M m | |
=> (Maybe Track.RenderSource -> Track.RenderStyle) | |
-> Text | Either a control name, or a #-prefixed pitch name. |
-> m () |