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

Contents

Description

Provides key signature meta-data.

Synopsis

Key signature type

data KeySignature Source

A key signature, represented by number of fifths from C and mode.

key :: Fifths -> Bool -> KeySignature Source

Create a major or minor signature.

Adding key signatures to scores

keySignature :: (HasMeta a, HasPosition a) => KeySignature -> a -> a Source

Set the key signature of the given score.

keySignatureDuring :: HasMeta a => Span -> KeySignature -> a -> a Source

Set the key signature of the given part of a score.

Extracting key signatures

withKeySignature :: KeySignature -> (KeySignature -> Score a -> Score a) -> Score a -> Score a Source

Extract all key signatures from the given score, using the given default key signature.