# Please help: Button toggle troubles

**URL:** https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741
**Category:** OSC/PILOT General Discussion
**Created:** [April 3, 2023, 5:35pm UTC](https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741 "2023-04-03T17:35:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Henriqelele](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@Henriqelele](https://forum.oscpilot.com/u/Henriqelele)
#### Post date: [April 3, 2023, 5:35pm UTC](https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741/1 "2023-04-03T17:35:47Z")

</div>

Hello  
I have a quick question. Can somebody tell me why my toggle function does not work when I assign it? I wanted my button to light up when I have something turned on on a track (reverb, delay etc) and turn off when I press it again which will turn off the reverb, delay etc… But it does not work, it only turns it on and off when I press the button twice which defeats the purpose. I don’t know what is wrong. Help would be appreciated. Thank you.  
Pics below.

 ![Screenshot 2023-04-03 at 19.28.25](https://canada1.discourse-cdn.com/flex029/uploads/oscpilot/original/1X/3df42ec38e6d6bc2cbf0d1fef8b99e007cd83bc6.png)  
 ![Screenshot 2023-04-03 at 19.29.19](https://canada1.discourse-cdn.com/flex029/uploads/oscpilot/original/1X/eb1ffab786d652b2237ea3cb36801d75324f37f5.png)

---

<div class="post-metadata">

### Author: ![Nowiamone](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/nowiamone/32/261_2.png) [@Nowiamone](https://forum.oscpilot.com/u/Nowiamone)
#### Post date: [April 5, 2023, 7:18pm UTC](https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741/2 "2023-04-05T19:18:26Z")

</div>

When you have midi assignment mode activated (Ctrl+M), and you select the thing in Ableton you assigned, you have to check the Ableton Info Area, if you can choose the Midi assignment mode to “absolute”

---

<div class="post-metadata">

### Author: ![Nowiamone](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/nowiamone/32/261_2.png) [@Nowiamone](https://forum.oscpilot.com/u/Nowiamone)
#### Post date: [April 5, 2023, 11:41pm UTC](https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741/3 "2023-04-05T23:41:03Z")

</div>

Picture example:  
 ![midi](https://canada1.discourse-cdn.com/flex029/uploads/oscpilot/original/1X/829853345fddf5efec01dd6d50389bccd7d98474.jpeg)

---

<div class="post-metadata">

### Author: ![Nowiamone](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/nowiamone/32/261_2.png) [@Nowiamone](https://forum.oscpilot.com/u/Nowiamone)
#### Post date: [April 5, 2023, 11:46pm UTC](https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741/4 "2023-04-05T23:46:02Z")

</div>

Concerning your OSC/Pilot Settings: why are you sending Midi Notes in addition to the Midi CC Message? Toggle message needs only the Midi CC.  
And why do you have “1” as “on” value, instead of the default 127?  
My settings for a working Midi CC Toggle Button Assignment are here for example:

 ![on](https://canada1.discourse-cdn.com/flex029/uploads/oscpilot/original/1X/4a621ea1ebce101280c5c2975c3d779533ca6bb5.jpeg)

---

<div class="post-metadata">

### Author: ![Henriqelele](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@Henriqelele](https://forum.oscpilot.com/u/Henriqelele)
#### Post date: [April 6, 2023, 2:43pm UTC](https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741/5 "2023-04-06T14:43:58Z")

</div>

I tried your settings and they worked great. I don’t know why when I had the same settings as you earlier it didn’t work. The only difference was that I didn’t leave the midi notes section blank. Was that the reason for not working properly?  
Im using your settings and everything works perfectly. You’re awesome dude. Thank you very much.

---

<div class="post-metadata">

### Author: ![Nowiamone](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/nowiamone/32/261_2.png) [@Nowiamone](https://forum.oscpilot.com/u/Nowiamone)
#### Post date: [April 6, 2023, 7:56pm UTC](https://forum.oscpilot.com/t/please-help-button-toggle-troubles/741/6 "2023-04-06T19:56:07Z")

</div>

Nice, glad it works!

It could be the midi notes, yes.  
It s sometimes tricky to find out the reason. Sometimes it is the Ableton Ctrl+M wrong assignement Mode (relative instead of absolute, as in the picture above) 🙂
