Page 1 of 1

Erratic Pan Knob Behavior

Posted: 01 Nov 2014 21:45
by Emerson
Hello,

I am trying to create a template that will allow me to control various functions within my DAW (Pro tools). So far everything is going great except when it comes to controlling pan knobs and I am not sure how to go about troubleshooting the problem.

When I pan a track left or right in my DAW, I also see it move in Lemur the same way...nice and smooth all the way from 0 (hard left) to 127 (hard right). However, when I turn the knob in Lemur, the panning in my DAW is very sporadic. First, it moves in the opposite direction of how I turn my knob. Second, it takes only a very small range of motion to make my panning go all the way right or left in my DAW. In other words, everything is reflected correctly when receiving data from my DAW but there is some problem with sending it. I have a suspicion that it may be because my knob is sending and receiving data at the same time causing erratic behavior. I set up a monitor object to monitor my knob but it dosen't seem helpful because everything shows up as normal both when I move it in Lemur or when it reacts to changes I make in my DAW. I feel like this is probably some sort of common problem with sending and receiving data at the same time but I'm not sure the appropriate search term for this to find a solution. Any thoughts?

Re: Erratic Pan Knob Behavior

Posted: 01 Nov 2014 23:26
by Joe Soap
'Feedback'
'MIDI Feedback'

Re: Erratic Pan Knob Behavior

Posted: 02 Nov 2014 00:35
by Traxus
^^

what he said, to avoid this, send in and out on diffrent cc's, and have a listener for the knobs z value to detect a touch.

listening to z will allow you to determine which takes precedence, if z == 1 lemur takes precedence, if z == 0, your DAW takes precedence

Re: Erratic Pan Knob Behavior

Posted: 02 Nov 2014 02:31
by Phil999
Traxus wrote:listening to z will allow you to determine which takes precedence, if z == 1 lemur takes precedence, if z == 0, your DAW takes precedence
yep, this is sometimes necessary.

In other words, deactivate the knob's x mapping, create two scripts for the knob, one for input (executed on MIDI in), one for output (executed on x). In the input script start with if(z==1) return;, then add the input command (MIDI_ARGS). This will prevent any feedback from the host.

Re: Erratic Pan Knob Behavior

Posted: 04 Nov 2014 18:51
by Emerson
Thanks guys!

That gives me some good info about what to look for and try. I am not super familiar with all the aspects of scripting yet so it may take me some time to fully understand the approach you described...but I am slowly getting it. I appreciate your help!