[sdiy] Wavetable Design Update

Dave Manley dlmanley at sonic.net
Wed Feb 2 08:08:24 CET 2011


On 2/1/2011 10:28 PM, Matthew Smith wrote:

> * How to convert from my note numbers (these will be all the MIDI-defined notes plus intermediate detune values) to the prescaler/counter values to plug into AVR's onboard counter. I would appear to
> have two options: a lookup table (would not fit in ATTINY2313 FLASH) or to calculate these at note-on. I'm favouring the second approach for flexibility (would even allow an actual frequency to be
> specified rather than a note number) but haven't the foggiest how to work out the algorithm required.

roughly:

note number mod 12 -> note
note number / 12 -> octave

12 entry look up table followed by divide/mult by power of 2 for octaves

?

-Dave



More information about the Synth-diy mailing list