I’ve tried to assign the endless knob to the logic pro (rewind and forward by division). So basically,
Goal: I want to use the knob to toggle clockwise and anticlockwise to trigger the playhead on Logic pro to move rewind(anticlockwise) or forward (when clockwise)
Problem:
I tried using midi learn on Logic, it turns out that it moves forward when I move the knob both clockwise and anti clockwise.
What I’ve tried:
Using the midi translator to set that if I toggle clockwise, the CC value will be 127; anticlockwise will be 1. So eventually I can set that up in logic pro, 127 = move forward, 1=rewind
However, the code and rules don’t seem to make it work…
In addition, I’ve taken the liberty to create a project file for your particular situation.
The translator in question here is 1.0 (preset 1 translator 0).
We capture the input and put the value in the local variable qq. We compare the value with the last known value in global variable ga.
Depending on the value we update the local variable tt to either 1 or 127.
We then put the value of qq into ga for the next iteration.
Finally we send the value of tt.
Here are the rules:
if qq>ga then tt=1
if qq<ga then tt=127
if qq==0 then tt=127
if qq==127 then tt=1
ga=qq
Hi Steve, thank you for providing such details explanation here. And thanks to that I’m able to turn the knob to get either 1 / 127. However, there are some issues that I ran into…
If I turn the knob for the entire cycle (clockwise), for most of them I’ll get a number of 1, but a 127 will show up somewhere at the middle. I think this is due to the fact that this is a knob, doesn’t act like a fader, and it continues from 127 to 0 or 0 to 127 (if anti clockwise).
I am still not able to route that on logic. Although logic recognizes the incoming value as 1, it doesn’t move forward.
It doesn’t look like it is learning it correctly. Try typing in B0 0A 01 where it currently says B0 09 Lo7, B0 0A 01
Not sure what the heck Lo7 means.
Also make sure the Swallow option is set in the translator and only send it to the alias ‘Application’ and not directly to the automatic alias or the physical port. You are sending the message twice with every turn that you make.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz