Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Simple Code for Panning?
No permission to create posts
October 7, 2015
4:15 am
Avatar
zoki665
Member
Members
Forum Posts: 10
Member Since:
September 27, 2015
sp_UserOfflineSmall Offline

Hi All,

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
Z

October 7, 2015
1:44 pm
Avatar
JD Young
Leiden, The Netherlands
Admin
Forum Posts: 80
Member Since:
November 5, 2014
sp_UserOfflineSmall Offline

Hi Zoki,

I found this PDF some time ago, which helped me out with the same issue: http://www.rs-met.com/document.....nRules.pdf

Good luck :)

JD

October 7, 2015
10:10 pm
Avatar
zoki665
Member
Members
Forum Posts: 10
Member Since:
September 27, 2015
sp_UserOfflineSmall Offline

Hey JD,

Thanks for the swift response and the information! I'll have a look at it tonight and see what I can do.

Smile

Z

October 8, 2015
5:31 pm
Avatar
zoki665
Member
Members
Forum Posts: 10
Member Since:
September 27, 2015
sp_UserOfflineSmall Offline

JD,

I managed to figure it out. Thanks a lot!

Z

October 11, 2015
4:57 pm
Avatar
JD Young
Leiden, The Netherlands
Admin
Forum Posts: 80
Member Since:
November 5, 2014
sp_UserOfflineSmall Offline

Hi Z Smile

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?!

Cheers! JD

October 12, 2015
2:04 am
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

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:

http://music.miami.edu/program.....aster.html

Hope that helps give you some more options -

Will

October 12, 2015
2:18 pm
Avatar
JD Young
Leiden, The Netherlands
Admin
Forum Posts: 80
Member Since:
November 5, 2014
sp_UserOfflineSmall Offline

Thanks Will! I will look into that Smile

- JD

October 15, 2015
9:05 pm
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

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.

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online: W Pirkle
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Derek: 41

Peter: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 478

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 29

Topics: 479

Posts: 1870

Newest Members:

certvalue111, sobhana s, sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 140

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 140