music-score-1.6: Musical score and part representation.

Safe HaskellNone

Music.Score.Note

Synopsis

Documentation

getNote :: Note a -> (Span, a)Source

Deconstruct a note.

Typically used with the ViewPatterns extension, as in

 foo (getNote -> (s,x)) = ...

getNoteSpan :: Note a -> SpanSource

Get the span of the note. Same as era and ask.

getNoteValue :: Note a -> aSource

Get the value of the note. Same as extract.

(=:) :: Span -> a -> Note aSource

Construct a note from a span and value.

Typically used with the span constructors as in:

 0 <-> 2 =: c
 0 >-> 1 =: d