Safe Haskell | Safe-Inferred |
---|
Utilities to directly perform a saved score.
Synopsis
- perform_file :: Cmd.Config -> IO.FilePath -> IO.IO [Midi.WriteMessage]
- timed_perform :: Cmd.State -> IO.FilePath -> Ui.State -> Vector.Vector Score.Event -> IO.IO (([Midi.WriteMessage], [Log.Msg]), CPU)
- timed_derive :: IO.FilePath -> Ui.State -> Cmd.State -> BlockId -> IO.IO ((Vector.Vector Score.Event, [Log.Msg]), CPU)
- timed_derive2 :: IO.FilePath -> Ui.State -> Cmd.State -> BlockId -> IO.IO ((Vector.Vector Score.Event, [Log.Msg]), CPU)
- timed_lilypond :: IO.FilePath -> Ui.State -> Cmd.State -> BlockId -> IO.IO ((Either Log.Msg Text, [Log.Msg]), CPU)
- timer_msg :: (a -> Int) -> Thread.Metric Thread.Seconds -> a -> String
- run_cmd :: Ui.State -> Cmd.State -> Cmd.CmdId a -> Either Text (a, [Log.Msg])
- perform :: Cmd.State -> Ui.State -> Vector.Vector Score.Event -> (([LEvent.LEvent Midi.WriteMessage], [LEvent.LEvent Sc.Note.Note]), [Log.Msg])
- perform_midi :: Cmd.State -> Ui.State -> Vector.Vector Score.Event -> [LEvent.LEvent Midi.WriteMessage]
- load_score_states :: Cmd.Config -> IO.FilePath -> IO.IO (Ui.State, Cmd.State)
- add_library :: Builtins -> InstrumentAliases -> Cmd.State -> Cmd.State
- load_score :: IO.FilePath -> IO.IO (Either Text (Ui.State, Builtins, InstrumentAliases))
- require_right :: IO.IO (Either Text a) -> Except.ExceptT Text IO.IO a
- load_cmd_config :: IO.IO Cmd.Config
- cmd_config :: Cmd.InstrumentDb -> IO.IO Cmd.Config
- type CPU = Thread.Seconds
- time :: Text -> (Thread.Metric Thread.Seconds -> a -> String) -> IO.IO a -> IO.IO (a, CPU)
- toSecs :: Thread.Seconds -> Double
Documentation
perform_file :: Cmd.Config -> IO.FilePath -> IO.IO [Midi.WriteMessage] Source #
timed_perform :: Cmd.State -> IO.FilePath -> Ui.State -> Vector.Vector Score.Event -> IO.IO (([Midi.WriteMessage], [Log.Msg]), CPU) Source #
timed_derive :: IO.FilePath -> Ui.State -> Cmd.State -> BlockId -> IO.IO ((Vector.Vector Score.Event, [Log.Msg]), CPU) Source #
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.
timed_lilypond :: IO.FilePath -> Ui.State -> Cmd.State -> BlockId -> IO.IO ((Either Log.Msg Text, [Log.Msg]), CPU) Source #
timer_msg :: (a -> Int) -> Thread.Metric Thread.Seconds -> a -> String Source #
perform :: Cmd.State -> Ui.State -> Vector.Vector Score.Event -> (([LEvent.LEvent Midi.WriteMessage], [LEvent.LEvent Sc.Note.Note]), [Log.Msg]) Source #
perform_midi :: Cmd.State -> Ui.State -> Vector.Vector Score.Event -> [LEvent.LEvent Midi.WriteMessage] Source #
load_score_states :: Cmd.Config -> IO.FilePath -> IO.IO (Ui.State, Cmd.State) Source #
add_library :: Builtins -> InstrumentAliases -> Cmd.State -> Cmd.State Source #
load_score :: IO.FilePath -> IO.IO (Either Text (Ui.State, Builtins, InstrumentAliases)) Source #
Load a score and its accompanying local definitions library, if it has one.
require_right :: IO.IO (Either Text a) -> Except.ExceptT Text IO.IO a Source #
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 -> (Thread.Metric Thread.Seconds -> a -> String) -> IO.IO a -> IO.IO (a, CPU) Source #
toSecs :: Thread.Seconds -> Double Source #