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

Cmd.BlockConfig

Description

Cmds that affect global block config but don't fit into any of the more specefic modules.

Synopsis

Documentation

cmd_toggle_edge :: Cmd.M m => Msg.Msg -> m () Source #

Toggle an edge from the selected parent to the clicked child.

toggle_merge_all :: Ui.M m => BlockId -> m () Source #

Merge all adjacent note/pitch pairs. If they're already all merged, unmerge them all.

cmd_open_block :: Cmd.M m => Bool -> m () Source #

cmd_add_block_title :: Cmd.M m => Msg.Msg -> m () Source #

Add an empty title and focus on it. The text widget hides itself when empty, so the space gets it to appear for focus.

clip :: Cmd.M m => m () Source #

Clip a block to the selection.

collapse_children :: Ui.M m => BlockId -> TrackId -> m () Source #

Collapse all the children of this track.

expand_children :: Ui.M m => BlockId -> TrackId -> m () Source #

Expand all collapsed children of this track. Tracks that were merged when they were collapsed will be left merged.

append :: Ui.M m => BlockId -> BlockId -> m () Source #

cmd_toggle_flag :: Cmd.M m => Block.TrackFlag -> m () Source #

If the flag is set on any of the selected tracks, unset it. Otherwise, set it. This is a bit more complicated than a simple toggle because if you have a collapsed track where one is soloed and one isn't, a simple toggle would just move the solo flag from one track to the other, leaving the track as a whole soloed.

toggle_collapse_empty :: Ui.M m => BlockId -> m () Source #

Collapse all tracks that are empty and have all empty children. If everything empty is collapsed, expand them all. Don't consider merge-collapsed.

cmd_set_solo :: Cmd.M m => Msg.Msg -> m () Source #

Enable Solo on the track and disable Mute. It's bound to a double click so when this cmd fires I have to do undo the results of the single click. Perhaps mute and solo should be exclusive in general.

cmd_mute_or_unsolo :: Cmd.M m => Msg.Msg -> m () Source #

Unset solo if it's set, otherwise toggle the mute flag.

cmd_move_tracks :: Cmd.M m => Msg.Msg -> m () Source #

Move selected tracks to the left of the clicked track.