haskore-0.1.0.4: The Haskore Computer Music System

Haskore.Basic.Pitch

Synopsis

Documentation

type T = (Octave, Class)Source

data Class Source

Constructors

Cf 
C 
Cs 
Df 
D 
Ds 
Ef 
E 
Es 
Ff 
F 
Fs 
Gf 
G 
Gs 
Af 
A 
As 
Bf 
B 
Bs 

& code{(-3,A)} & 27.5 Hz \ $A_1$ & code{(-2,A)} & 55.0 Hz \ $A $ & code{(-1,A)} & 110.0 Hz \ $a $ & code{( 0,A)} & 220.0 Hz \ $a^1$ & code{( 1,A)} & 440.0 Hz \ $a^2$ & code{( 2,A)} & 880.0 Hz end{tabular} end{center} caption{Note names, Haskore representations and frequencies.} figlabel{note-freqs} end{figure}

Treating pitches simply as integers is useful in many settings, so let's also define some functions for converting between type{Pitch.T} values and type{Pitch.Absolute} values (integers): begin{haskelllisting}