Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Perform.Lilypond.Convert

Description

Convert Derive.Score output into Lilypond.Events.

Synopsis

Documentation

convert :: Types.Config -> [Score.Event] -> [LEvent.LEvent Types.Event] Source #

Convert Score events to Perform events, emitting warnings that may have happened along the way.

Unlike the other backend converts, this one doesn't need a lookup inst function. It just fakes up an inst for whatever you ask it. This means Constants.ly_global doesn't actually need an allocation. The bad part is that postproc is not applied, but I'll worry about that if I ever have a postproc that affects lilypond.

pitch_to_lily :: Transposed -> Either Text Pitch Source #

If it's *twelve then use pitch_note, else use pitch_nn and pick the closest pitch.