Hi chronozphere,

I'm glad I could help :-)

BTW, when you asked about me storing tones in arrays, did you mean the note frequencies themselves?

If so, then yes I am doing that...I have an array I filled with my calculated versions of the notes that I can then lookup using constants.

I have 12 notes (0 - 11) in each of 9 (0 - octaves...

I used the note formula mentioned in a similar page to the one you posted.

I now have a TOscillator class (uses the TDDS class internally) for producing sine, cosine, triangle, sawtooth, square, and noise waveforms at the desired frequency. Also can use the TWaveform class I told you abotu for custom waveforms.

I also have a TEnvelope class to shape the output volume of the oscillator, and a TMixer class that can mix multiple outputs into one output.

Let me know if you are interested in these too

cheers,
Paul