hly-0.16: Haskell LilyPond

Safe HaskellSafe
LanguageHaskell98

Music.LilyPond.Light.Annotation

Contents

Synopsis

Documentation

allows_annotations :: Music -> Bool Source #

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

add_annotations :: [Annotation] -> Music -> Maybe Music Source #

Attempt to add a set of Annotation to a Music element.

clear_annotations :: Music -> Music Source #

Remove any annotations.

add_annotations_err :: [Annotation] -> Music -> Music Source #

Erroring variant.

add_annotation_err :: Annotation -> Music -> Music Source #

Erroring variant.

beam :: [Music] -> Music Source #

Manual beaming.

note_annotate :: Annotation -> Music -> Music Source #

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 -> Music Source #

Add reminder accidental to note.

c_acc :: Music -> Music Source #

Add cautionary accidental to note.

Beaming

Beaming

p_cmp :: (t1 -> t2 -> t) -> (t3 -> t1) -> (t3 -> t2) -> t3 -> t Source #

Predicate composition.

p_or :: (t -> Bool) -> (t -> Bool) -> t -> Bool Source #

Predicate composition (or).

p_or even odd 1 == True

p_and :: (t -> Bool) -> (t -> Bool) -> t -> Bool Source #

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] -> Music Source #

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