Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Cmd.Repl.LSol

Description

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

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

Synopsis

Documentation

type Index = Int Source #

search_date :: Monad m => Int -> Int -> Int -> Integer -> m Text Source #

insert :: (Solkattu.Notation stroke, Cmd.M m) => Korvai.Instrument stroke -> Bool -> TrackTime -> Korvai.Korvai -> Index -> m () Source #

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

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.

reintegrate :: Ui.M m => Block.SourceKey -> m () Source #

This can be called manually to reintegrate after a change, but is also called automatically be edit.

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

Get the SourceKey, create an empty track with that.

date :: Stack => Int -> Int -> Int -> Day Source #

writeHtml :: FilePath -> Bool -> IO () Source #

Write all Korvais as HTML into the given directory.