I’am doing a synth plug-in in which I implemented 2 oscillators with different waveshapes, LFO, filters and ADSR.
Everything works great but not the ADSR: while I am playing and I change note, when the new note is starting I have an initial glitch. If I wait until the sound of the first note is finished I don’t have this issue…I neither have it when I am playing without the ADSR so I really don’t know how to solve this issue.
The ADSR is done by multiplying the samples with a linear envelope (practically using the basic formula y=mx+q of a line and calculating the angular coefficient “m” depending on the values of the ADSR parameters). I also tried to use all the values as “LinearSmoothedValue” but unluckily it didn’t solve the problem.
Anyone else had this problem or have any idea on how to solve this?