Search found 5 matches

by Rie
18 Nov 2012 14:58
Forum: General Discussion
Topic: compare values of fader.x
Replies: 3
Views: 866

Re: compare values of fader.x

Add lastX expression to fader

Code: Select all

if(x>lastX) functionA;
if(x<lastX) functionB;
lastX = x;
by Rie
18 Nov 2012 10:50
Forum: Troubleshooting
Topic: please tell me why this 'for loop' does not work? (simple)
Replies: 2
Views: 882

Re: please tell me why this 'for loop' does not work? (simpl

Code: Select all

for (i=myVals[0];   i<Major[1];   i++)
{

  mySwitches.x[i]=1;

}
This will work but i dont think it will do what you want :)

What should this loop do? :)
by Rie
18 Nov 2012 10:24
Forum: Troubleshooting
Topic: Endless Knob as Jog
Replies: 6
Views: 2179

Re: Endless Knob as Jog

Yes you are right, it does expect 0 - 127 but if in Lemur knobs values goes over 1 (eg 1.001) or below 0 (eg -0.001) it doesnt work anymore. Im new to all this, Lemur, and midi and everything, so im still learning. I think it translates ranges 0.000 - 1.000 to 0 - 127. I dont know what it does with ...
by Rie
17 Nov 2012 10:23
Forum: Troubleshooting
Topic: Endless Knob as Jog
Replies: 6
Views: 2179

Re: Endless Knob as Jog

Thank you I found some examples but it seems that neither works with traktor. It did help me because It gave me idea how to resolve this, so I made a script that works with traktor :) 1. Add two more empty expressions locally for knob: last_x value2 2. On midi sending options for knob, turn off ...
by Rie
17 Nov 2012 00:30
Forum: Troubleshooting
Topic: Endless Knob as Jog
Replies: 6
Views: 2179

Endless Knob as Jog

Hi, I am trying to controll jog move in traktor with endless knob. However, the values traktor accepts are in range of 0-1, and if I turn my knob several times lemur sends negative values or values grater than 1. I tried to make a script - when values get grater than 1 it sets x to 0 and when values ...