Hullo! I’ve been working on a synthesizer plugin and have run into some latency issues when using portk’s to smooth my knobs. For most of the controls it isn’t a problem to remove this smoothing, but for ADSR values this smoothing is helpful and keeps the synth from making zipper noise when adjusting these variables. I put together a simple instrument allowing the user to toggle on and off the portk’s. As you can see in these pictures, when portk is applied with porttime of 1ms there is 55ms of latency between note-on and sound output, whereas without portk, latency is only 1.5ms. Ableton Live shows the plugin to have 1.5ms of latency.
With portk:
Without portk:
I’m curious if anyone has advice on other methods of k-rate smoothing without this latency, or any reason as to why this much latency occurs. Attached is the demo synth if anyone’s interested. Thank you!
Quartz Portk Delay Demo.csd.zip (911 Bytes)