Documentation
& 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}
classToInt :: Class -> RelativeSource
classFormat :: Class -> ShowSSource