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

Portabilitynon-portable (TF,GNTD)
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellNone

Music.Score.Meta.Annotations

Description

Provides a basic way annotating scores.

Synopsis

Documentation

data Annotation Source

An annotation is a unique textual value attached to parts of a score. They are ignored by default, but can be collected with withAnnotations.

annotate :: String -> Score a -> Score aSource

Annotate the whole score.

annotateSpan :: Span -> String -> Score a -> Score aSource

Annotate a part of the score.

showAnnotations :: (HasPart' a, Ord (Part a), HasText a) => Score a -> Score aSource

Show all annotations in the score.

showAnnotations' :: (HasPart' a, Ord (Part a), HasText a) => String -> Score a -> Score aSource

Show all annotations in the score using the given prefix.

withAnnotations :: HasText a => ([String] -> Score a -> Score a) -> Score a -> Score aSource

Handle the annotations in a score.