hly-0.16: Haskell LilyPond

Safe HaskellSafe
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.

class Lilypond a where Source #

Minimal complete definition

ly_notate

Methods

ly_notate :: a -> String Source #