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
Control Fader with a button
Re: Control Fader with a button
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
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
Thanx for your help.
Zzrolf
Zzrolf