Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Cmd.Repl.LSol

Contents

Description

Utilities for solkattu. This re-exports Derive.Solkattu.Db so I can find pre-defined korvais.

E.g.: > return $ LSol.search $ LSol.has_instrument "kendang_tunggal" > return $ LSol.search $ LSol.around_date (LSol.date 2017 7 10) 10 > 59: .... etc > LSol.insert_k1 True 0 (LSol.korvais !! 59) 0

Synopsis

Documentation

type Index = Int Source #

insert :: (Pretty stroke, Cmd.M m) => Korvai.GetInstrument stroke -> Bool -> TrackTime -> Korvai.Korvai -> Index -> m () Source #

Insert the korvai at the selection. TODO implement ModifyNotes.replace_tracks to clear existing notes first

integrate

edit_new :: Cmd.M m => Korvai.Korvai -> Index -> Text -> m ReplProtocol.Result Source #

Find the korvai, do integrate_track for it, and open an editor on the source file. The editor has bindings to reintegrate after an edit.

get_key :: Cmd.M m => m Block.SourceKey Source #

Find the SourceKey of integrated events around the cursor.

integrate_track :: Cmd.M m => Korvai.Korvai -> Index -> Text -> m Block.SourceKey Source #

Get the SourceKey, create an empty track with that.