Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Perform.ConvertUtil

Description

Utilities for writing Convert modules, which take Score.Events to the performer specific events.

Synopsis

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.