Page 1 of 1

Knob middle click

Posted: 31 May 2013 02:59
by Imza
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?

Re: Knob middle click

Posted: 31 May 2013 04:23
by Phil999
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).

Code: Select all

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.

Re: Knob middle click

Posted: 01 Jun 2013 22:09
by Imza
It does work, however, I can't drag it from .5 up to 1. I have to touch it at .7 or higher. I wish knobs had a physics function that could be turned on or off.

Re: Knob middle click

Posted: 03 Jun 2013 20:24
by Imza
http://forum.liine.net/viewtopic.php?f= ... 581#p12581
Here is one that works on iPad apparently with Lemur 3.0+, but I'm using Legacy Lemur 2.0.3 and it doesn't function at all :cry: