Cabbage Logo
Back to Cabbage Site

Knob/slider turn problem

Hi,

Im trying to make an adsr fo my sampler, and have used this adsr code before. The problem is when im trying to tur any of the knobs to the left, only the right one will turn. Does anyone know what to do?:slight_smile:

Can you share your code?

sampler.csd (542 Bytes)

I also have these three soundfiles in the same folder:

That’s not a Cabbage .csd…

sampler.csd (1.7 KB)

Does this not work?

The problem is you have 4 sliders all with the same position. It should be bounds(x, y, width, height). You are just changing the width of each slider. So when you try to interact with one of the sliders on the left, it’s the right most one that picks up the mouse event because of its width.

Thank you for answering quick, and for helping!

1 Like