Cabbage Logo
Back to Cabbage Site

How to smooth a slider?

I have a problem with my effect plugin giving unwanted distortion when I move the sliders. Is there some kind of smoothing opcode that I can use to “smooth” the variation of the slider values?

Distortion.csd (1.8 KB)

You can low-pass filter the slider values to smoothen them.

kA_plus cabbageGetValue "A+"
kA_plus tonek kA_plus, 10

You can also use the port or portk opcodes. :+1:

1 Like

Yes - port helps. :smiley: