hly-0.15: Haskell LilyPond

Safe HaskellSafe-Inferred
LanguageHaskell98

Music.LilyPond.Light.Output.LilyPond

Synopsis

Documentation

ly_work :: Work -> String Source

Translate Work to lilypond source code.

ly_music_elem :: Music -> String Source

Translate Music element to lilypond source code.

import Music.LilyPond.Light
import Music.Theory.Duration.Name.Abbreviation
ly_music_elem (Join [c4#q',e4#h]) == "c' 4. e' 2"

ly_process :: Lilypond a => FilePath -> Format -> String -> a -> IO ExitCode Source

Notate Lilypond value, write to file, and run lilypond to generate output in Format.

ly_process_cwd :: Lilypond a => Format -> String -> a -> IO ExitCode Source

Variant of ly_process using current working directory.