Page 1 of 1

Knob snapping back to 0.5

Posted: 18 Mar 2012 21:38
by telekommander
hey guys..

i'm nearly finished with a small traktor template i made. i have two filters for deck A & B and want to corresponding knobs (bipolar) to snap back to 0.5 when i release my finger.
i managed putting a button underneath to reset with a script (Knob7.x=0.5;), but i think it would be nicer to have the knob snap back on its own.

thanks for your help.

Re: Knob snapping back to 0.5

Posted: 19 Mar 2012 00:41
by whatisvalis
I can manage this with a Fader, since it has a Z variable. Create an On Expression script with 'positive to 0' message (arrow pointing down) and
Fader.x=0;

Not bipolar though, but you could mess around with the range. Unfortunately the multislider (which can be bipolar) doesn't have a z variable either.

I'm sure somebody who can actually code will help you out. Is it possible to hide a pad behind the fader to reset upon release?

Re: Knob snapping back to 0.5

Posted: 26 Apr 2012 10:33
by bite
Hello,
someone have manage this?
I don,t know how to snap a knob to 0,5
If someone wants to share his custom knob it will be great,
Thanks!

Re: Knob snapping back to 0.5

Posted: 29 Apr 2012 16:16
by madlab
Whatisvalis, can you develop about the expression for the centered slider please ? I just started using lemur today and miss some of the features in TouchOSC like the centered slider... But I feel I won't regret the transition !

Re: Knob snapping back to 0.5

Posted: 02 May 2012 16:59
by mat
Hey,

yeah, it is a pitty, that the "z" for "finger on control" is only available for some controls - defintily something for the feature wishlist. here too.

Also the physics attributes are different. Cause you can solve the problem easy by using MultiSlider (e.g. one instead of a fader). MultiSlider got the physics attribute "height". If physics are activated it falls back to that value you enter, whenever the finger leave. That height is not available for Knob or Fader. Hmmmm, ask mayself why there is this difference in Physics. Hope that helped a little,

cheers*mat