jean-emmanuel / open-stage-control

Libre and modular OSC / MIDI controller
https://openstagecontrol.ammd.net
GNU General Public License v3.0
701 stars 88 forks source link

[Bug]Button sending 0 #734

Closed GeneralMidi closed 3 years ago

GeneralMidi commented 3 years ago

Me again. I hope this is ok to ask. I need to send the value 0 from a button (for a cc value which can be 0). You can see from the gif that changing it to 0 ,even when on tap, causes the button to stay on. Changing the off value is a workaround.

button send 0

This could be me not understanding this properly, so if so, I apologise.

jean-emmanuel commented 3 years ago

This happens when on and off are equal, change off to fix it.

GeneralMidi commented 3 years ago

Ok, but I don't need off because it's set to tap. Hrmm

I'm generating the buttons, so I guess I'll need to add some logic into check if on and off are equal. Seems excessive if the button is set to tap?

jean-emmanuel commented 3 years ago

i'll fix it eventually but meanwhile you could simply set off to any value that has no chance to be in "on"

Le 19/05/2021 à 12:42, GeneralMidi a écrit :

Ok, but I don't need off because it's set to tap. Hrmm

I'm generating the buttons, so I guess I'll need to add some logic into check if on and off are equal. Seems excessive if the button is set to tap?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jean-emmanuel/open-stage-control/issues/734#issuecomment-843978716, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIESZ6IX4QPUZKDWBHFI6TTOOI3BANCNFSM45ELPKMQ.

GeneralMidi commented 3 years ago

yes of course, like a string. Thank you.