Knob middle click

Discuss problems and solutions.
Post Reply
Imza
Newbie
Posts: 39
Joined: 13 Apr 2012 00:37
Location: St. Louis, MO
Contact:

Knob middle click

Post 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?
lightlabstl.com
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: Knob middle click

Post 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.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Imza
Newbie
Posts: 39
Joined: 13 Apr 2012 00:37
Location: St. Louis, MO
Contact:

Re: Knob middle click

Post 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.
lightlabstl.com
Imza
Newbie
Posts: 39
Joined: 13 Apr 2012 00:37
Location: St. Louis, MO
Contact:

Re: Knob middle click

Post 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:
lightlabstl.com
Post Reply