Troubleshooting

Knob middle click

Started by Imza on .

Sign in or create an account to join the conversation.

4 posts

Topic starter
Alright, so I feel like this is something that should be really easy to do, but I can't get it to work right. What I want is for a knob to "click" when x is near .5, or when the cc is neat 63, whichever....when it's halfway up. This is to put a click on an EQ knob, similar to on DJ mixers. How can I script this correctly?
hm, interesting thought. I used to add a button to 'reset' a knob to 0 or 0.5, but wasn't very happy with that. Double tap might also be an option.

Now to do a 'middle click' I'm not sure how to do it. One thing is certain, the script must be executed with z (or On MIDI).
if (x<0.6 && x>0.4) x=0.5;
That works only when releasing the knob. To make that happen while moving the knob, I'm not sure if that is possible at all, because you are changing the x value at this moment and I believe this input cannot be bypassed. I think we'd need a 'touch-bypass' attribute for that. Or maybe we can use physics? Will think about it.


Edit: haha, I was wrong about executing with z. Just execute the script with x, and it snaps to the middle. Great.