how can i reverse the value of a fader

Discuss Lemur and share techniques.
digitalson
Regular
Posts:143
Joined:21 Mar 2015 02:26
how can i reverse the value of a fader

Post by digitalson » 09 Nov 2015 01:08

it goes down for up in the software and i want it to work like a normal fader

Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53

Re: how can i reverse the value of a fader

Post by Phil999 » 09 Nov 2015 03:49

you will have to use a script to inverse the x value.

Sorry if I can't give you a better advice right now.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

MrCorba
Regular
Posts:143
Joined:02 Sep 2013 20:17
Location:Netherlands

Re: how can i reverse the value of a fader

Post by MrCorba » 09 Nov 2015 17:17

Create an expression with a value of 1-x

Now you can map that new expression for a reversed x.
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba

digitalson
Regular
Posts:143
Joined:21 Mar 2015 02:26

Re: how can i reverse the value of a fader

Post by digitalson » 12 Nov 2015 03:58

but what if i have x mapped already ,,,its x*800 its for a mouse position

MrCorba
Regular
Posts:143
Joined:02 Sep 2013 20:17
Location:Netherlands

Re: how can i reverse the value of a fader

Post by MrCorba » 12 Nov 2015 10:26

If your code now is x*800 then you change is to 800-(x*800) et voila, reversed.

Cheers
MrCorba
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba

ndivuyo
Regular
Posts:279
Joined:23 May 2014 00:24

Re: how can i reverse the value of a fader

Post by ndivuyo » 13 Nov 2015 04:29

why not (1 - x) * 800? ;)
So then you can do:

decl maxValue = 800;
blahblah = (1 - x) * maxValue;

MrCorba
Regular
Posts:143
Joined:02 Sep 2013 20:17
Location:Netherlands

Re: how can i reverse the value of a fader

Post by MrCorba » 13 Nov 2015 09:14

But now you can do:

decl maxValue = 800;
blahblah = maxValue-(x*maxValue); ;)
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba

digitalson
Regular
Posts:143
Joined:21 Mar 2015 02:26

Re: how can i reverse the value of a fader

Post by digitalson » 14 Nov 2015 22:22

that brings up another point,,,if i am using a fader to move the mouse position it seams that i only need the x value cause the mouse click is locked on the object i am controlling but i would like to use all the faders range, what it does is goes to 0 around 3/4 the way up well down with the x-1 ,but how can i reduce the mouse x value to make the position of the mouse to move the full distance of lemurs fader?,,,kinda tricky ,i am automating a fader that has no midi functions ,so what i did was found the position then single click to hold it then made position value x.
but it seams that x*600 seams to work the best ,but the y value doesnt need to be used cause it just goes up and down....like i said its a workaround to automate a non automatable function....thanks in advance.....
also the mouse position and click is a good function to fix the window focus problem in cubase ,cause key commands dont work if the mixer is not in focus as well as the project window,,,so u can just put a mouse click before the kc and boom no more clicking the window before using different kc,s

MrCorba
Regular
Posts:143
Joined:02 Sep 2013 20:17
Location:Netherlands

Re: how can i reverse the value of a fader

Post by MrCorba » 16 Nov 2015 11:23

I'm not sure if you're asking a question.....

If you are, could you formulate it a bit more clearly?
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba

digitalson
Regular
Posts:143
Joined:21 Mar 2015 02:26

Re: how can i reverse the value of a fader

Post by digitalson » 17 Nov 2015 01:07

ok...i have the fader value as x*600 ,x is controlling the mouse position but not the full range of the fader,as well as being reversed

Post Reply