Clicking sounds in monophonic Synthesisers

Hello Everyone,

I’ve been trying to write my own “synthesiser”, and JUCE looked like a good place to start. So I’ve based the basic note handling routines on what I found in the Audio section of the Juce Demo, the one with the sine waves and the cello samples. However, the Juce Demo Sine Waves make a clicking sound if you play a second note without letting go of the first one. Can anyone tell me how to work around this, to make the clicks go away?

Thanks

(Does it? I thought the demo was polyphonic… Oh well) All you’d have to do is make your synth polyphonic, and make sure that when a note is stopping, it has a short fade-out rather than just cutting off like the demo does.