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

Copyright(c) Hans Hoglund 2012-2014
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

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 a Source

Annotate the whole score.

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

Annotate a part of the score.

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

Show all annotations in the score.

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

Show all annotations in the score using the given prefix.

withAnnotations :: ([String] -> Score a -> Score a) -> Score a -> Score a Source

Handle the annotations in a score.