Karya, built on Sun Nov 26 01:04:37 PST 2017 (patch 0a920b2bde70c0cbac8ee09d158064798b61bbe5)

Safe HaskellNone

Perform.Lilypond.LilypondTest

Contents

Synopsis

Documentation

extract

extract_simple :: [Text] -> Either Text [Either Process.Voices Process.Ly] -> Either Text Text Source #

Extract lilypond with no voices and concatenate.

extract_lys Source #

Arguments

:: [Text]

Only include these lilypond backslash commands, or want_all.

-> Either Text [Either Process.Voices Process.Ly] 
-> Either Text [Either [(Process.Voice, Text)] Text] 

make data

mktime :: Double -> Types.Time Source #

1 == quarter, to be consistent with the default behaviour for Types.real_to_time.

pitches

derive

type StaffGroup = (Text, [Text]) Source #

(title, [Staff]) where Staff = Text

convert_measures :: [Text] -> [Types.Event] -> Either Text Text Source #

Like convert_staves, but expect only one staff.

convert_staves Source #

Arguments

:: [Text]

Only include lilypond backslash commands listed here. Or want_all to see them all, for debugging.

-> [Types.Event] 
-> Either Text [StaffGroup] 

Convert events to lilypond score.

want_all :: [Text] Source #

This is a magic code to see lilypond backslash commands.

convert_score :: Result -> (Text, [Text]) Source #

Generate an entire ly score.

extract :: (Types.Event -> a) -> Result -> ([a], [Text]) Source #

extract