Hi guys, I don't know if this site is of any use to you http://juhara.com/article-7-tone-gen...th-delphi.html but it shows how to generate tones as .WAV formatted data.

I reckon it could easily be adapted to do other outputs like tones with custom ADSR (Attack Decay Sustain Release) envelopes for synthesizing notes from different musical instrument types (just an idea).

cheers,
Paul