Safe Haskell | Safe-Inferred |
---|
Utilities for writing Convert modules, which take Score.Events to the performer specific events.
Synopsis
- convert :: (Score.Event -> Cmd.ResolvedInstrument -> [LEvent.LEvent a]) -> (ScoreT.Instrument -> Maybe Cmd.ResolvedInstrument) -> [Score.Event] -> [LEvent.LEvent a]
- add_stack :: Score.Event -> Log.Msg -> Log.Msg
Documentation
convert :: (Score.Event -> Cmd.ResolvedInstrument -> [LEvent.LEvent a]) -> (ScoreT.Instrument -> Maybe Cmd.ResolvedInstrument) -> [Score.Event] -> [LEvent.LEvent a] Source #
Wrapper that performs common operations for convert functions.
Warn if the input isn't sorted, look up the instrument, and run
Cmd.inst_postproc
.