Endless Knob as Jog

Discuss problems and solutions.
Post Reply
Rie
Newbie
Posts: 5
Joined: 17 Nov 2012 00:16

Endless Knob as Jog

Post 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 :)
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Endless Knob as Jog

Post 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! ;)
Rie
Newbie
Posts: 5
Joined: 17 Nov 2012 00:16

Re: Endless Knob as Jog

Post 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.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Endless Knob as Jog

Post 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
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]
Rie
Newbie
Posts: 5
Joined: 17 Nov 2012 00:16

Re: Endless Knob as Jog

Post 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 :)
Glint_Eye
Newbie
Posts: 1
Joined: 18 Jan 2013 00:34

Re: Endless Knob as Jog

Post by Glint_Eye »

Here's a module of an endless rotary encoder i uploaded.

maybe you find it usefull.

greets.
Attachments
Endless Rotary Knob.jzlib
http://liine.net/en/community/user-library/view/350/
(3.24 KiB) Downloaded 154 times
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Endless Knob as Jog

Post 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. . .
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]
Post Reply