Portability | non-portable (TF,GNTD) |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
- data Fifths
- data KeySignature
- key :: Fifths -> Bool -> KeySignature
- isMajorKey :: KeySignature -> Bool
- isMinorKey :: KeySignature -> Bool
- keySignature :: (HasMeta a, HasPart' a, HasOnset a, HasOffset a) => KeySignature -> a -> a
- keySignatureDuring :: (HasMeta a, HasPart' a) => Span -> KeySignature -> a -> a
- withKeySignature :: KeySignature -> (KeySignature -> Score a -> Score a) -> Score a -> Score a
Key signature type
data KeySignature Source
A key signature, represented by number of fifths from C and mode.
key :: Fifths -> Bool -> KeySignatureSource
Create a major or minor signature.
isMajorKey :: KeySignature -> BoolSource
isMinorKey :: KeySignature -> BoolSource
Adding key signatures to scores
keySignature :: (HasMeta a, HasPart' a, HasOnset a, HasOffset a) => KeySignature -> a -> aSource
Set the key signature of the given score.
keySignatureDuring :: (HasMeta a, HasPart' a) => Span -> KeySignature -> a -> aSource
Set the key signature of the given part of a score.
Extracting key signatures
withKeySignature :: KeySignature -> (KeySignature -> Score a -> Score a) -> Score a -> Score aSource
Extract all key signatures from the given score, using the given default key signature.