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

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

Music.Score.Meta.Clef

Contents

Description

Provides clefs as meta-data.

Warning Experimental module.

Synopsis

Clef type

data Clef Source

Constructors

GClef 
CClef 
FClef 

Instances

Eq Clef 
Ord Clef 
Show Clef 
Typeable Clef 

Adding clefs to scores

clef :: (HasMeta a, HasPosition a) => Clef -> a -> aSource

Set clef of the given score.

clefDuring :: HasMeta a => Span -> Clef -> a -> aSource

Set clef of the given part of a score.

Extracting clefs

withClef :: Clef -> (Clef -> Score a -> Score a) -> Score a -> Score aSource

Extract the clef in from the given score, using the given default clef.