Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

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.