music-pitch-1.9.0: Musical pitch representation.

Safe HaskellNone
LanguageHaskell2010

Music.Pitch.Clef

Contents

Description

Clefs and staff positions.

Synopsis

Staff lines

data StaffLines Source

Represents staff number relative middle. Staff zero is either the middle staff, or if using an even number of lines, the staff below the middle space.

data HalfSpaces Source

Represents the difference betwee staff positions (often corresponding to one diatonic step).

Clef representation

newtype Clef Source

Constructors

Clef 

Instances

symbolName :: ClefSymbol -> String Source

Return the English name of the given clef.

symbolPitch :: ClefSymbol -> Maybe Pitch Source

 Return the pitch implied by the given clef at the middle space or line.

Properties

isModernClef :: Clef -> Bool Source

Is this a clef used in contemporary notation?

isHistoricalClef :: Clef -> Bool Source

Is this an historical clef?

isVoiceClef :: Clef -> Bool Source

Is this a traditional voice clef, i.e. a C clef on some staff.

Standard clefs

trebleClef :: Clef Source

Standard treble clef.

bassClef :: Clef Source

 Standard bass clef.

sopranoClef :: Clef Source

 Standard soprano clef.

mezzoSopranoClef :: Clef Source

 Standard mezzo soprano clef.

altoClef :: Clef Source

 Standard alto clef.

tenorClef :: Clef Source

 Standard tenor clef.

baritoneClef :: Clef Source

 Standard baritone clef.