Control Fader with a button

Discuss Lemur and share techniques.
Post Reply
Zzrolf
Newbie
Posts:7
Joined:26 Aug 2013 05:25
Control Fader with a button

Post by Zzrolf » 10 Sep 2013 08:50

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

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: Control Fader with a button

Post by Softcore » 10 Sep 2013 15:45

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

Zzrolf
Newbie
Posts:7
Joined:26 Aug 2013 05:25

Re: Control Fader with a button

Post by Zzrolf » 10 Sep 2013 15:56

Thanx for your help.
Zzrolf

Post Reply