Tuesday, May 4, 2010

tonos

Copperbox revision 1302.

I've added a Num instance for PitchLetters (as they are just Z7 integers in disguise) and a Distance type class which should model a metric space, except perhaps the triangle equality rule - I don't know how it applies to PitchLetters.

PitchLetters have a distance according to their semitone count, e.g. C to D is 2, but B to C is 1 (as considering a piano there is no black key between them).

Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.