I'm working on a small additive synth:
Going well, but my problem is that because the MIDI input is simply banging an amplitude envelope on a continually sounding oscillator, if I interrupt the current cycle through the amplitude envelope with a new note, there is a clicking sound due to the sudden discontinuous drop or rise in volume.
How can I avoid this without using polyphony?
Somehow I need the current amplitude value to run smoothly to the new one when noteon is received. Any thoughts?