compare values of fader.x

Discuss Lemur and share techniques.
Post Reply
shanekoss
Newbie
Posts: 23
Joined: 27 Jun 2012 13:27

compare values of fader.x

Post by shanekoss »

wondering if anyone has an idea to perform a function based on a change in x.

i am wanting to perform one function if the fader value is increasing and a different function if the fader value is decreasing.

thanks!
Rie
Newbie
Posts: 5
Joined: 17 Nov 2012 00:16

Re: compare values of fader.x

Post by Rie »

Add lastX expression to fader

Code: Select all

if(x>lastX) functionA;
if(x<lastX) functionB;
lastX = x;
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: compare values of fader.x

Post by Macciza »

Or . . .
Under your Fader makes 2 scripts executing on x - Call one 'up' and set to '+' (increasing) and the other 'down' and set to '-' (decreasing) for execution timing . . .
You now have 2 separate scripts that you can program how you like . .

Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
shanekoss
Newbie
Posts: 23
Joined: 27 Jun 2012 13:27

Re: compare values of fader.x

Post by shanekoss »

thanks!
Post Reply