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

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]) -> (Score.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.