Page 1 of 1
Endless Knob as Jog
Posted: 17 Nov 2012 00:30
by Rie
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 get below 0, it sets x to 1.
This works, but when this event happens I loose control over knob and movement, knob stops at new position and I
must touch screen again to make it move again.
May I kindly ask for advice ... if my problem can be solved
Re: Endless Knob as Jog
Posted: 17 Nov 2012 07:21
by Softcore
Perhaps you might want to download one of the 2-3 Mackie emulations found in the user library - those feature endless knobs as jogs and you might get a couple ideas out of them!
Re: Endless Knob as Jog
Posted: 17 Nov 2012 10:23
by Rie
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 sending of x and set sending of value2 midi instead.
(Uncheck Knobs x variable, and check value2 variable in Project menu)
Add new script locally for Knob
On Expression: x
----
if(x>last_x) value2+=0.005;
if(x<last_x) value2-=0.005;
if(value2>1) value2=0;
if(value2<0) value2=1;
last_x = x;
I hope this helps to others having the same problem
Edit:
If you have a Fader in your project, instead of 0.005 values you can use Fader.x, or Fader.x/10. That will set the speed of jog.
Re: Endless Knob as Jog
Posted: 17 Nov 2012 11:54
by Macciza
Hi
Where in Traktor is it expecting 0-1 as a range?
Usually this stuff is handled via MIDI with 0-127 or 0-16383 or various Relative/delta methods using CCs . . .
Cheers
MM
Re: Endless Knob as Jog
Posted: 18 Nov 2012 10:24
by Rie
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 values grater than 1, does it still translates those or stops there ... If you have some alternate solutions for this I would be grateful if you could share it here
Re: Endless Knob as Jog
Posted: 18 Jan 2013 00:39
by Glint_Eye
Here's a module of an endless rotary encoder i uploaded.
maybe you find it usefull.
greets.
Re: Endless Knob as Jog
Posted: 18 Jan 2013 06:42
by Macciza
Hi
Hmmm I thought this was already somewhere in the library, apart from the various Mackie implentations . . .
Anyway Hi and welcome to the forum . . . Good to see you get off to a community minded start . . .
Unfortunately you do need a bit more scripting experience as you have missed crucial bits here in terms of the acceleration . . .
It doesn't really do it quite right, you might want to have a look to see where you got it wrong . . .
Often section of well established projects are quite good in there implementations . . .
Probably best to get a good understanding of what they actually do and how before tinkering . .
but good to see the contribution anyway, even if it needs a little fixup . .. .
Cheers
MM
Edit: Apologies - I'm sorry but I didn't look quite close enough, hadn't noticed your re-bracketing . . .
But I guess it does still give avery linear response, which through me, you could maybe up the deltas for the fastest movements to give a bit more feel of acceleration .. .
Sorry about that, - I fell for the old even though who have a clue sometimes still get it wrong occasionally. . .