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

Safe HaskellNone

Derive.DeriveSaved

Contents

Description

Utilities to directly perform a saved score.

Synopsis

Documentation

timed_derive2 :: IO.FilePath -> Ui.State -> Cmd.State -> BlockId -> IO.IO ((Vector.Vector Score.Event, [Log.Msg]), CPU) Source #

This is like timed_derive, except that it does more work itself rather than calling Performance.derive. This can be more convenient to look at derivation results.

timer_msg :: (a -> Int) -> CPU -> Thread.Seconds -> a -> String Source #

load_score :: Cmd.InstrumentDb -> IO.FilePath -> IO.IO (Either Text (Ui.State, Builtins, InstrumentAliases)) Source #

Load a score and its accompanying local definitions library, if it has one.

load_cmd_config :: IO.IO Cmd.Config Source #

Load cmd config, which basically means the inst db.

timer

type CPU = Thread.Seconds Source #

CPU seconds.

time :: Text -> (CPU -> Thread.Seconds -> a -> String) -> IO.IO a -> IO.IO (a, CPU) Source #