I found only the post, you can see above. But in this solution, theres a limitation of the endless knob. Because, wenn I reach for example value 0, I cant continue the move.
The other example, where the other guy, shared his script, it`s a nice one, with reset the value after reaching the values 0 or 127. But then it go laggy.
I cant find another post, where I can make the easiest solution, with the example, Ive tried to explain. As with the fixed centeres position from the values 3F/4E or something like that.
When I move knob left, the value stays on value 3F (63) but triggered everytime this value to keystroke UP, by moving. Same to moving knob right, which stays on value 4E (65) and triggers everytime this value and keytroke DOWN, by moving. When I don`t move the knob, it stays on the centered value (64)
Would be great, to get the example for this small but very effective translation
The easiest way to deal with dead ends on an absolute controller if you want to output relative is to have a button set up to disable output while you re-center the knob.
The attached does this.
The first translator sets gb=1 if a button is pressed which will disable all output for re-calibration.
The second translator sets gb=0 for normal operation
The third translator handles right movement and does nothing if gb=1 (recalibrate) or incoming value is less than ga - Outputs Down keystroke
The forth translator handles left movement and does nothing if gb=1 (recalibrate) or incoming value is greater than ga - Outputs Up keystroke
The fifth translator sets ga to the last known knob value for the next iteration.
Again, if you hit a dead end, you push the button and re-center the knob, release the button and then you have more room to continue to turn the knob in the direction that you wish.
Of course you will need to set up the proper incoming CC’s and note values for your knob and button to get this to work.
Is there an easy possibilty to do not use a button, to re-calibrate it?
I mean, I saw this type of using an endless knob with a rule, which says, If 3E (turn knob left) is coming, then this happens (scroll up), If 4F (turn knob right) is coming the other happening (scroll down).
Like a mouse wheel…
It would be much more better to handle it without a button, where I have to hold a button, to re-calibrate the knob, because the knob is endless and hasn`t a deadend…
If your endless encoder sends relative numbers when turning the knob, it should work. What I would need to know is if it still sends something when it reaches the end and you keep turning and what it sends.
Bome Customer Care
Also available for paid consulting services: email@example.com
The first preset handles X-touch for CC 8 on MIDI CH 11 with absolute values
The second preset handles Cue Level for APC-40 MK2 which uses relative values.
For absolute values, we need to capture the last known value on a global variable “ga” and then compare the input with the last known value to determine which keystroke is sent. The first translator sends “R” for right movement, the second translator sends “L” for left movement and the third translator reset the last known value of GA.
APC40 MKII Preset
The first translator sends “D” for right movement
The second translators sends “U” for left movement
We check the incoming value of pp to determine direction. If less than 0x40, (first translator)
then it is a right movement and if greater than 0x40 it is a left movement (second translator). There is no need to capture last known value since this is a relative encoder.