I’m making an FM synth plugin, and I’m using the MPESynthesiser as a base however a problem arises when the release of my oscillator envelopes is set to anything above -lets say- 0.5 seconds:
I know the reason for this: currently the synthesiser has 6 total voices and I have called setVoiceStealingEnabled(true). This means that if all the voices are active and are in their respective “release” stage and I press a new key, the synthesiser will steal the first voice it can find and reset it, causing the click.
My question is how am I able to have voice stealing enabled (because without it the synth is basically unusable) and avoid these discontinuities.
Any suggestion/help would be appreciated, thanks