Accessing SoundWave PCM Data from C++ Code

It might also be worth looking into VST Synthesisers, providing you can find ones that are open-source.