Copperbox revision 119.
More work on Chords - again this work is partial so is currently comment out. However it revealed another problem with intervals - I couldn't count up from one pitch to another with an arithmetic distance. So I've added a new function, to do this:
arithmeticStep :: Pitch -> Int -> Pitch
This has shown up a problem with the Pitch instance of`addSemi` whereby the pitch spelling goes wrong. I haven't correct this at the moment as I'm not sure if my obvious fix is correct (the obvious fix is to keep the pitch letter the same and simply alter the accidental).
Sunday, March 30, 2008
Saturday, March 29, 2008
Monday, March 24, 2008
Bala
Copperbox revision 113.
Some more work on intervals - a new function extr (which needs renaming) it generates the suceeding pitch by adding an interval.
extr :: Pitch -> Interval -> Pitch
Also a bit of work on pitch spelling, and some work on a new chord representation. The chord representation is just a sketch and currently hidden inside comments.
Some more work on intervals - a new function extr (which needs renaming) it generates the suceeding pitch by adding an interval.
extr :: Pitch -> Interval -> Pitch
Also a bit of work on pitch spelling, and some work on a new chord representation. The chord representation is just a sketch and currently hidden inside comments.
Bala
Copperbox revisions 111 & 112.
Revision 112 - Reinstated the interval naming functions in the module Interval.
(Note they could do with better names).
Revision 111 - Some tidying up of the Pitch code - the redundant type class SemiToneCount has been removed (it is replaced by the class Semitones).
New functions added to the interval Interval module to find the arithmetic distance between two pitches and to build an interval from two pitches (arithmeticDistance and buildInterval).
Revision 112 - Reinstated the interval naming functions in the module Interval.
(Note they could do with better names).
Revision 111 - Some tidying up of the Pitch code - the redundant type class SemiToneCount has been removed (it is replaced by the class Semitones).
New functions added to the interval Interval module to find the arithmetic distance between two pitches and to build an interval from two pitches (arithmeticDistance and buildInterval).
Subscribe to:
Posts (Atom)
Blog Archive
About Me
- Stephen Tetley
- 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.