Cabbage Logo
Back to Cabbage Site

Change LFO Shape with Rotary Slider?

Hi, Im trying to make a VST synth and have the basics already in (lowpass, lfo mod) and it works fine but when I add a slider to change the shape of the number after the speed and amp, it no longer plays sound.
Once i get rid of the chnget:k and replace it with the number i was using before, it works fine again! I have the slider connected to a channel but for some reason i cannot change the lfo shape. Does anyone know why this is?

It’s really impossible help without seeing some code. Can you post a minimal example?

Im afraid ill have to send the csd, sorry.
aura7.csd (2.3 KB)
I took the chnget for shape out so it plays sound btw

That was a tricky one! Check this line:

rslider bounds(186, 30, 75, 75) range(1, 25, 0, 1, 1), text("S P E E D"), channel("rate"), textcolour(0, 0, 0, 255) trackercolour(0, 0, 0, 255) markercolour(0, 0, 0, 255) outlinecolour(0, 0, 0, 255)

you’re setting the initial value of the rate to 0. But you’re range goes from 1 to 25. That there be the problem!

Wow, i didnt even know that! Im trying to change the lfo shape with the shape slider but that might have something to do with it as well. Thanks!

Yes, I assumed that :laughing: