Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Common music keys.
- data Mode_T
- type Key = (Note_T, Alteration_T, Mode_T)
- key_fifths :: Key -> Int
Documentation
Enumeration of common music notation modes.
type Key = (Note_T, Alteration_T, Mode_T) Source
A common music notation key is a Note_T
, Alteration_T
,
Mode_T
triple.
key_fifths :: Key -> Int Source
Distance along circle of fifths path of indicated Key
. A
positive number indicates the number of sharps, a negative number
the number of flats.
key_fifths (A,Natural,Minor_Mode) == 0 key_fifths (A,Natural,Major_Mode) == 3 key_fifths (C,Natural,Minor_Mode) == -3