Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Music.Theory.Clef
Description
Common music notation clefs.
Synopsis
Documentation
Clef enumeration type.
Constructors
Bass | |
Tenor | |
Alto | |
Treble | |
Percussion |
Instances
Show Clef_Type Source # | |
Eq Clef_Type Source # | |
Ord Clef_Type Source # | |
Clef with octave offset.
Constructors
Clef | |
Fields
|
clef_range :: Clef_Type -> Maybe (Pitch, Pitch) Source #
Give clef range as a Pitch
pair indicating the notes below and
above the staff.
map clef_range [Treble,Bass] == [Just (d4,g5),Just (f2,b3)] clef_range Percussion == Nothing
clef_restrict :: Integral i => i -> Clef i -> Clef i Source #
Set clef_octave
to be no further than r from 0
.