# Knob/slider turn problem

**URL:** <https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745>\
**Category:** Csound Noobs\
**Created:** [12 March 2025 12:16 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745 "2025-03-12T12:16:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cabbagehead](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/c/d6d6ee/32.png) [@Cabbagehead](https://forum.cabbageaudio.com/u/Cabbagehead)\
**Post date:** [12 March 2025 12:16 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745/1 "2025-03-12T12:16:59Z")

</div>

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?🙂

 ![Screenshot 2025-03-12 at 11.44.15](https://forum.cabbageaudio.com/uploads/default/original/2X/6/6ebe7c4373b5b72ba763187a672a973b261938bb.png)

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [12 March 2025 12:17 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745/2 "2025-03-12T12:17:23Z")

</div>

Can you share your code?

---

<div class="post-metadata">

**Author:** ![Cabbagehead](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/c/d6d6ee/32.png) [@Cabbagehead](https://forum.cabbageaudio.com/u/Cabbagehead)\
**Post date:** [12 March 2025 12:42 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745/3 "2025-03-12T12:42:16Z")

</div>

[sampler.csd](https://forum.cabbageaudio.com/uploads/short-url/gfEWI75reZFAUzRAa6bvvef5ICj.csd) (542 Bytes)

I also have these three soundfiles in the same folder:  
[/uploads/default/original/2X/0/08e1e68362db1a94d7094211e66e224e08c6ec49.wav](https://forum.cabbageaudio.com/uploads/default/original/2X/0/08e1e68362db1a94d7094211e66e224e08c6ec49.wav) [/uploads/default/original/2X/4/48cfc34645169b6414e6298c74f66178cda986ee.wav](https://forum.cabbageaudio.com/uploads/default/original/2X/4/48cfc34645169b6414e6298c74f66178cda986ee.wav) [/uploads/default/original/2X/0/090a20285cba096a17a4b9af128b7741d22238b2.wav](https://forum.cabbageaudio.com/uploads/default/original/2X/0/090a20285cba096a17a4b9af128b7741d22238b2.wav)

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [12 March 2025 13:02 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745/4 "2025-03-12T13:02:58Z")

</div>

That’s not a Cabbage .csd…

---

<div class="post-metadata">

**Author:** ![Cabbagehead](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/c/d6d6ee/32.png) [@Cabbagehead](https://forum.cabbageaudio.com/u/Cabbagehead)\
**Post date:** [12 March 2025 13:17 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745/5 "2025-03-12T13:17:49Z")

</div>

[sampler.csd](https://forum.cabbageaudio.com/uploads/short-url/1iwlK0WFRa4pSgbbUxHStp79rMK.csd) (1.7 KB)

Does this not work?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [12 March 2025 13:24 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745/6 "2025-03-12T13:24:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Cabbagehead](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/c/d6d6ee/32.png) [@Cabbagehead](https://forum.cabbageaudio.com/u/Cabbagehead)\
**Post date:** [12 March 2025 13:30 UTC](https://forum.cabbageaudio.com/t/knob-slider-turn-problem/4745/7 "2025-03-12T13:30:43Z")

</div>

Thank you for answering quick, and for helping!
