Page 1 of 1

Control Fader with a button

Posted: 10 Sep 2013 08:50
by Zzrolf
Hi.
I am trying to control a fader with a button. The fader goes from 1-127
and i want to reset the fader with the button to 90.
How do i do that?
Thanx in advance
Zzrolf

Re: Control Fader with a button

Posted: 10 Sep 2013 15:45
by Softcore
Inside Lemur all objects' expressions go from 0 to 1 - not 1-127. (in essense the midi output value is calculated by multiplying the object's expression (variable) x with 127.

So....obviously x when fader is full up is 1 = 127/127 therefore your desired position of x = 90/127

So....

Add a script in your button - set to execute on x, any (or rising arrow)

Fader.x=90/127;


Where Fader.x replace with ActualNameOfYourFader.x

You can also find more scripting examples related to objects controlling other objects here:
http://forum.liine.net/viewtopic.php?f=34&t=3125

Re: Control Fader with a button

Posted: 10 Sep 2013 15:56
by Zzrolf
Thanx for your help.
Zzrolf