Erratic Pan Knob Behavior

Discuss problems and solutions.
Post Reply
Emerson
Newbie
Posts: 15
Joined: 08 Jul 2014 16:00

Erratic Pan Knob Behavior

Post 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?
Joe Soap
Regular
Posts: 462
Joined: 07 Jul 2012 15:04

Re: Erratic Pan Knob Behavior

Post by Joe Soap »

'Feedback'
'MIDI Feedback'
Traxus
Regular
Posts: 211
Joined: 30 Nov 2012 06:19
Location: Detroit
Contact:

Re: Erratic Pan Knob Behavior

Post 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
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: Erratic Pan Knob Behavior

Post 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.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Emerson
Newbie
Posts: 15
Joined: 08 Jul 2014 16:00

Re: Erratic Pan Knob Behavior

Post 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!
Post Reply