Being a noob, I have (what I hope) is a simple question.
Is there an easy way to implement manual stereo panning controlled by a knob/slider GUI element? I managed to find a solution for an auto-panner within the plugin books' TremoloPanner project but I'm unable to decipher how to adapt this to my requirements.
Any ideas or resources I could check out?
Thanks in advance
I found this PDF some time ago, which helped me out with the same issue: http://www.rs-met.com/document.....nRules.pdf
Great you figured it out! Here's a simple constant power panning class I wrote for my own use: https://www.dropbox.com/s/6dfolwhz2jzsh9b/PanningCP.zip?dl=0. I'm not a very experienced coder, but it might help you. There is one thing I don't like about the 'constant panning' scheme and that is that it brings down the volume of your (center panned) input with a factor of about 0.707.
I did some research and I found out that for stereo tracks they sometimes use a different approach. They would just leave the volume of your input the same (center panned), and only lower the opposite track in volume in linear fashion while panning. So if you pan to the right, say 50%, they would lower the left channel volume with 50% and visa versa. I mainly focus on mastering plug-ins, so I guess this approach would be more appropriate for me.
I’m curious to know which approach Will or Tom use for stereo panning?!
I have been using the constant power panning for a long time now (the sin/cos 1st quadrant method from my FX book). In addition, it is the panning formula for the MIDI Manufacturer's Association DLS Synth specification.
But, there are a bunch of options. Back in the 1990's one of my grad students named Jim West did a thesis project on panning for surround sound systems, where panning algorithm issues can be exacerbated. He got a bunch of panning algorithms from:
Gerzon, Michael A. 1992. Panpot laws for multispeaker stereo. 92nd Convention of the Audio Eng. Soc., Vienna. Preprint 3309.
You can find Jim's thesis (in plain HTML format) here:
Hope that helps give you some more options -
One more source to try:
Track down the MMA DLS Level 1 Spec (it is free). In this document, they describe a panning algorithm that uses MIDI pan values 0 -> 127 for the pan function. It is not the same as the constant power panning, and does not require a call to sin( ) or cos( )
Interestingly, when they introduced the more advanced spec in MMA DLS Level 2, they revised the panning algorithm stating that manufacturers should use the constant power panning, rather than the previous Level 1 spec panning.
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Jas, Rowan, sojourn, fabhenr, rg1, Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin
Moderators: W Pirkle: 573
Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 573, VariableCook: 3