hly-0.14: Haskell LilyPond

Safe HaskellSafe-Inferred

Music.LilyPond.Light.Annotation

Contents

Synopsis

Documentation

allows_annotations :: Music -> BoolSource

Can a Music element be annotated? Skip and Command do not ordinarily allow annotations, though there are some cases...

add_annotation :: Annotation -> Music -> Maybe MusicSource

Attempt to add an Annotation to a Music element.

beam :: [Music] -> MusicSource

Manual beaming.

note_annotate :: Annotation -> Music -> MusicSource

Add an Annotation to a Note Music element, else identity.

initial_note_chord_annotate :: Annotation -> [Music] -> [Music]Source

Annotate the first note/chord element.

Indirect annotations

Pitch

r_acc :: Music -> MusicSource

Add reminder accidental to note.

c_acc :: Music -> MusicSource

Add cautionary accidental to note.

Beaming

Beaming

p_cmp :: (t1 -> t2 -> t) -> (t3 -> t1) -> (t3 -> t2) -> t3 -> tSource

Predicate composition.

p_or :: (t -> Bool) -> (t -> Bool) -> t -> BoolSource

Predicate composition (or).

 p_or even odd 1 == True

p_and :: (t -> Bool) -> (t -> Bool) -> t -> BoolSource

Predicate composition (and).

 p_and even odd 1 == False

span_r :: (a -> Bool) -> [a] -> ([a], [a], [a])Source

Variant of span that further spans the reverse of the right hand side.

 span_r (< 0) [-1,-2,1,2,3,-3,-4] == ([-1,-2],[1,2,3],[-3,-4])

perhaps_beam :: [Music] -> [Music]Source

Beam if at least two elements.

beam_notes :: [Music] -> MusicSource

Beam interior notes/chords (ie. skip exterior non-note/non-chords).