Need some advice on how to start tracking down this intermittent issue. Sometimes, when i load another instance of my synth plugin into a DAW, it causes fluttery glitch noises on playback. If i load up a few instances, and one starts making the noises, i can delete that track, create a new track, and add another instance, and it’s often fine for a few more instances, until the another starts with the glitch. This happens in both Ableton and Reaper. It happens in both VST3 and AU, although more often in AU. And i haven’t been able to get the Standalone App version of it to glitch at all.
You can see in my video below, the first two instances work fine. The third i loaded has glitch issues. They’re just playing the Main Oscillator as a sine wave. The ADSR affects the amplitude. The Portamento is a SmoothedValue. Foldback Distortion is at 0. The ring mod, freq shift, and s&h are 100% Dry. The filter cutoff affects the tone of the glitching, which leads me to believe it’s happening at the filter
processSingleSampleRaw() method, but i haven’t the slightest idea what to check for.
The fact that there’s some frequency pulsing of the glitch against the pitch, i’m looking for somewhere the sampleRate or buffer sizes might not be getting the right data, but i’m not seeing anything yet. But i’d love any thoughts as to what would cause this to only happen sometimes would help.
Grazie in advance