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.Clef

Contents

Description

Provides clefs as meta-data.

Warning Experimental module.

Synopsis

Clef type

data Clef Source

Constructors

GClef 
CClef 
FClef 

Instances

Adding clefs to scores

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

Set clef of the given score.

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

Set clef of the given part of a score.

Extracting clefs

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

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