06-18-2022, 09:55 AM
|
#1 |
|
Human being with feelings
Join Date: Jan 2019
Posts: 86
|
Dear all,
I am fiddling around with reproducing Reaper's signal manipulation behavior in an external audio chain. I am quite successful there, because Reaper behaves logically, but one open issue is how Reaper handles stereo panning. I tried to measure this by taking a simple test file in a track with a 1kHz stereo square wave on one track, rendering different pan positions in Reaper to external files and analyzing them. The following points came up during my analysis:
A possible explanation is that panning/balancing is emulating some hardware pan pots with that behavior or some kind of loudness compensation is done, but this is just a guess. I am pretty puzzled, so can anybody help me out here or - even better - give me the math behind that mechanism? It might also be possible that I have some systematical measurement error in my approach, so I am grateful for any hint. Best regards, DrTT Last edited by DrTT; 06-18-2022 at 10:19 AM. |
|
|
06-18-2022, 10:44 AM
|
#2 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,916
|
Probably everything you ever wanted to know about pan law in REAPER:
https://forums.cockos.com/showthread.php?t=231241 |
|
|
06-18-2022, 12:11 PM
|
#3 | |
|
Human being with feelings
Join Date: May 2018
Location: Los Angeles
Posts: 1,753
|
Cockos has done various changes since that thread... DC offset aside, I think the conclusion is this:
Quote:
__________________
Cheers... Andrew K Reaper v7.30+• Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe. |
|
|
|
06-18-2022, 01:43 PM
|
#4 |
|
Human being with feelings
Join Date: Jan 2019
Posts: 86
|
Hello Schwa and Thonex,
thanks for your hints towards the discussion threads! The main message from those threads seems to be that the pan law is applied nonetheless to "stereo tracks" and hence this distorts the amplification for the panned-to channel. Unfortunately this makes it hard to emulate that behavior externally, so I am resorting to writing a simple JSFX-plugin that behaves in the naive way I like. It's a pity that then I cannot use the standard controls in the control panels, but I can live with that. Nevertheless the non-linearity of the panned-from channel and the DC-offset should be fixed some time. But I have to admit that I have a very academic and measurement-oriented approach to music production, hence this might not be time-critical or even relevant to others. Best regards, DrTT |
|
|
06-18-2022, 01:56 PM
|
#5 | |
|
Human being with feelings
Join Date: Mar 2007
Location: London UK
Posts: 3,782
|
Quote:
How does this play out with folders/busses? I remember back in the day I used to set to 3db pan like in cubase but something bout folder tracks meant things were 3db down when you did this. Is this still the same. At the end of the day if you use your ears does it matter? it only matters realy if you want to translate a mix from reaper to another DAW or vice versa no? M
__________________
https://www.marcuscliffe.com/ |
|
|
|
06-19-2022, 07:21 AM
|
#6 |
|
Human being with feelings
Join Date: Jan 2019
Posts: 86
|
Dear all,
I should be reading the descriptions more carefully: the behavior I like to have is already implemented in the "old" Reaper 3.x balance mode: it keeps the panned-to channel at an amplification of 1 and linearly decreases the panned-from channel. Unfortunately this selection is tagged as "deprecated", but I hope this does not mean "will be removed in a future release". Thanks for all the hints! Best regards, DrTT |
|
|
06-19-2022, 09:25 AM
|
#7 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,916
|
We are in fact planning to remove the deprecated, linear pan mode from future versions, although existing projects that have the pan mode set that way will not change. Linear panning is really not appropriate except maybe in some very technical applications. This is the stereo image that results:
![]() There is a reasonable discussion of why at the bottom of this page: https://www.cs.cmu.edu/~music/icm-on...dings/panlaws/ Plenty of other online resources are available on this topic as well. |
|
|
06-19-2022, 12:26 PM
|
#8 |
|
Human being with feelings
Join Date: Mar 2007
Location: London UK
Posts: 3,782
|
@Schwa
what do you suggest we set our projects to? I always used -3db pan LAW or perhaps 4.5 but I remember from years ago this messed up folder tracks in reaper. M
__________________
https://www.marcuscliffe.com/ |
|
|
06-19-2022, 12:44 PM
|
#9 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,916
|
There's a pan mode, and a pan law. The default pan mode since version 4.0 has been stereo balance / mono pan; the default pan law has been +0dB.
My previous comment was about the pan mode. There is a deprecated linear mode (deprecated in 2011) that we may remove in future versions. Re pan law, the main reason REAPER's default is +0dB is because it gives predictable output when used with folder tracks. If you don't care about that, then any pan law is fine. I think the default for most DAWs is -3dB or -4.5dB. Last edited by schwa; 06-19-2022 at 01:37 PM. |
|
|
06-19-2022, 01:24 PM
|
#10 | |
|
Human being with feelings
Join Date: Mar 2007
Location: London UK
Posts: 3,782
|
Quote:
If a folder is thought of as a simple Aux/Bus track, why does the main law thing mess this up? other DAW's don't have this issue no? So, for example if I use a regular track and make it a bus and send ting to it, doe's the pan law work as expected then? if so why does a folder mess this up? M
__________________
https://www.marcuscliffe.com/ |
|
|
|
06-19-2022, 01:48 PM
|
#11 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,916
|
The issue is the same with a stereo send. If you have a stereo track with identical left and right channels and send the stereo signal to another track, whether as a folder child or as a regular send, the stereo output level of the receiving track will be lower by the amount of that track's pan law. (Note that sends have their own pan law as well; if the send pan law and the receiving track pan law are both -3dB, then the receiving track output will be -6dB compared to the sending track.)
It's not about right or wrong, it's about predictability. If you use folder tracks for organization, you would not expect the output to drop just because you put a track in a folder. If you are not bothered by the level change, then by all means use a different pan law. To be clear, this is just how stereo summing and pan law works in general, it doesn't have anything to do with REAPER specifically. |
|
|
06-19-2022, 02:43 PM
|
#12 | |
|
Human being with feelings
Join Date: Mar 2007
Location: London UK
Posts: 3,782
|
Quote:
my point really is/was why does reaper change this paradigm ? To me as an old school console guy , I don't have to think about bussing tracks to a bus and wondering if the level changers in the pan law. Is this ONLY an issue if transferring between DAW's other than Reaper? M
__________________
https://www.marcuscliffe.com/ |
|
|
|
06-19-2022, 03:07 PM
|
#13 |
|
Human being with feelings
Join Date: Sep 2013
Posts: 731
|
So what's the difference between the "Reaper 3.x balance (deprecated)" Linear mode,
and the regular "Stereo Balance/Mono Pan" set at +0db? |
|
|
06-19-2022, 03:39 PM
|
#14 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,916
|
I'm probably going to have to bail out of this thread because pan law is a real energy vampire, but to answer that last question, "stereo balance, +0dB pan law, linear scale above -3dB" is equivalent to "3.x deprecated, +0dB pan law". But "stereo balance, -XdB pan law, linear scale above -3dB" is not equivalent to "3.x deprecated, -XdB pan law".
Here is a project set up to meter 4 different combinations of pan mode and pan law, using only JSFX. You can probably answer any questions you have by playing around with it. |
|
|
06-20-2022, 09:09 AM
|
#15 | |
|
Human being with feelings
Join Date: Dec 2012
Posts: 7,904
|
Quote:
That is, Reaper has no good way of knowing which tracks you want pan law on and which you might not unless you specifically go in and override the pan law at the track. This is a thing I don’t think other DAWs even let you do. In most, I think, if you even can change pan law, it would be either global or by project (session, whatever they call it) with no way to change it for just one or a few tracks. If it really bothers you the way Reaper does it, you can set up different track templates with different pan laws for the different uses.
__________________
Lorenzo's Tractor is Everywhere --- Ash's Tube --- Join the Partnership for a Drum Free Amerika |
|
|
|
06-20-2022, 11:10 AM
|
#16 |
|
Human being with feelings
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,404
|
If you want a pan law just use "boost pans" and you'll always have unity when pan is center. I agree with schwa that there's way too much pan law talk in forums...
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios magnuslindberg.com |
|
|
06-20-2022, 01:12 PM
|
#17 | |
|
Human being with feelings
Join Date: Mar 2007
Location: London UK
Posts: 3,782
|
Quote:
In reaper if you do this by setting say a 3 db pan law, when you send to a folder you'll find your panned child tracks are not the same level they would be before they were sent to the folder, hence the default 0 db pan law being recommended in reaper. this is the downside of NOT having defined stereo or mono tracks. M
__________________
https://www.marcuscliffe.com/ |
|
|
|
06-20-2022, 01:29 PM
|
#18 |
|
Human being with feelings
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,404
|
This would of course only happen if the folder parent is also panned. Mine are never panned. But yea I never mess with this, I made a decision years ago and stick with that.
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios magnuslindberg.com |
|
|
06-20-2022, 02:49 PM
|
#19 |
|
Human being with feelings
Join Date: Dec 2012
Posts: 7,904
|
It’s not about panned children. In the normal non-gain compensated modes, both channels are attenuated when the pan is centered. Since folder parents, buses, and even auxes are rarely actually panned, you just end up losing the pan law’s worth of level no matter what you send them.
I personally just use 0db for everything and quite naturally compensate for level changes with the fader if/when I feel it’s necessary. The only time pan law is really warranted is when automating pans, and frankly even then, I’m not often bothered by it. Any plugin that does panning is going to have its own pan law, and very often if I’m panning something toward the center, I also do want it to step forward a bit anyway.
__________________
Lorenzo's Tractor is Everywhere --- Ash's Tube --- Join the Partnership for a Drum Free Amerika |
|
|
06-20-2022, 05:54 PM
|
#20 |
|
Moderator
Join Date: Aug 2007
Location: Caracas, Venezuela
Posts: 8,798
|
My workflow is:
For tracks with mono output use -3dB as pan law and the default mode For tracks with stereo output use -3dB as pan law and change to dual pan I only apply this if I need to use automation on that track otherwise I just leave it be.
__________________
Pressure is what turns coal into diamonds - Michael a.k.a. Runaway |
|
|
06-20-2022, 07:02 PM
|
#21 | |
|
Human being with feelings
Join Date: Jul 2016
Location: Los Angeles
Posts: 1,831
|
Quote:
I'm certainly not trying to make the argument Reaper should adopt this approach, but I think the argument can be made that this is much more convoluted than it should be, especially for new users. This should be pretty simple but in its current state, it just isn't. Maybe it is time to consider different pan settings for mono/stereo items in the project settings? That way there would be an "auto" way to set and forget based on if a track has only mono items or only stereo items. Not sure about tracks that mix and match though, but I also can't say I would ever, ever do that so I don't think it would really affect the users who are doing that. Also, more than a few people now have stated that the 3.x deprecated setting does what they expect. I'm not sure it is a good idea to remove it. In fact, I think it should be renamed so that users who are struggling can find it a little easier when they are trying to find the right setting as generally they aren't going to try something called "deprecated". Just my inflation-based 3 cents but I really think this needs to be less complicated and easier to navigate than it currently is. |
|
|
|
06-20-2022, 08:52 PM
|
#22 | ||
|
Human being with feelings
Join Date: Jul 2016
Location: Los Angeles
Posts: 1,831
|
Quote:
As others have pointed out, Cubase/Nuendo, Logic and Pro Tools all use equal gain for their pan law. So saying that linear panning is not appropriate except in some technical applications is NOT accurate at all because most DAW users whether they realize it or not are using equal gain for pan law, not equal power. It also means that Reaper users coming from any of those DAWs or receiving files from any of those DAWs are going to have to jump through hoops just to get the pan law sounding the same/similar. Quote:
So, when you say, bah, linear, no one uses it or should use it, let's bail on it, that's pretty concerning because you are imposing that choice on everyone. Now, you are the captains of the ship, so imposing your choice on us is completely captains prerogative. But in this case to be fair, your reasoning for doing so is a bit suspect and is making this unnecessarily complicated, especially for new users. Think of it this way. If you are doing complex editing work, sometimes an equal power fade works when an equal gain fade doesn't and vice versa. You are never exclusively using one or the other. It is the same situation here. Sometimes people are going to want an equal gain pan law and sometimes they aren't. As you can see from the people coming from other DAWs who are very confused, it is because they are used to using equal gain while Reaper defaults to equal power. And just going through the options in the project settings, it's really hard for them to figure out which one they want to be using. I think most users are going to have no idea what a "Linear scale above -3dB pan law" checkbox means whereas if you rename the 3.x deprecated option to "equal gain pan law" or something similar that is less confusing. Again, when multiple users are saying they couldn't recreate the correct pan law for them until they selected the deprecated option, imho you shouldn't get rid of the deprecated option. |
||
|
|
06-21-2022, 04:45 AM
|
#23 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,916
|
The deprecated mode is only equal gain at +0 or -6 pan law. In between it looks like this. It was deprecated for a reason.
![]() The default mode is equal gain at +0dB if "linear scale above -3dB" is checked, and linear at -6dB by definition. I suppose... what we could do is deprecate both the 3.x mode and the "linear scale above -3dB" checkbox, and instead have an equal power vs equal gain control. Equal gain at other than +0 or -6 dB is not currently available in REAPER. |
|
|
06-21-2022, 08:58 AM
|
#24 | ||
|
Human being with feelings
Join Date: Jul 2016
Location: Los Angeles
Posts: 1,831
|
Quote:
![]() It's basically the same options, but allows users to better select the available choices without any confusion. And for new users who are confused and asking on the forum, someone can just tell them, select equal gain instead of equal power (not that these threads aren't informative )Also, for clarity's sake, you might want to consider removing the -6.02 option. Yes, that is exact value of the combined gain of the channels, but it exists only on paper. It doesn't exist in the real world which is why everyone just uses -6dB instead. Having BOTH -6dB AND -6.02dB is confusing and a bit unnecessary. IMHO it would be better just to have the list like this: ![]() There's no confusion there and simplifies things for everyone. Quote:
**and thank you for the clarification on the deprecated option. I completely forgot about that from the other thread. |
||
|
|
06-22-2022, 02:01 PM
|
#25 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,916
|
|
|
|
06-22-2022, 02:17 PM
|
#26 |
|
Human being with feelings
Join Date: May 2018
Location: Los Angeles
Posts: 1,753
|
Thanks so much, Schwa and Devs!!!
I'm sure this will be a great update to the old Pan law functionality. Thanks again for doing this. Cheers, Andrew K
__________________
Cheers... Andrew K Reaper v7.30+• Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe. |
|
|
06-23-2022, 02:23 AM
|
#27 | |
|
Human being with feelings
Join Date: Mar 2007
Location: London UK
Posts: 3,782
|
Quote:
feature request? M
__________________
https://www.marcuscliffe.com/ |
|
|
|
06-23-2022, 02:01 PM
|
#28 |
|
Human being with feelings
Join Date: Nov 2011
Posts: 576
|
This is a subject I've had a frustrating time understanding in the past, especially when it comes to things like folders.
To ask a very amateur and simple question, does this have bearing on ANYTHING other than the volume of a signal when panned? Does it affect phase /frequency/my vsti's/anything aside from strictly volume? |
|
|
06-23-2022, 02:15 PM
|
#29 |
|
Human being with feelings
Join Date: Dec 2012
Posts: 7,904
|
Well, depending on the law, it also affects volume when centered, but yeah it’s only about signal levels. If it changed other things we’d have much bigger problems.
__________________
Lorenzo's Tractor is Everywhere --- Ash's Tube --- Join the Partnership for a Drum Free Amerika |
|
|
06-23-2022, 02:41 PM
|
#30 |
|
Human being with feelings
Join Date: Nov 2011
Posts: 576
|
Okay got it, thank you much. As long as I only have to worry about balancing levels when panning then I don't have to overthink this anymore lol.
|
|
|
06-24-2022, 03:03 AM
|
#31 | |
|
Human being with feelings
Join Date: Mar 2007
Location: London UK
Posts: 3,782
|
Quote:
As was mentioned above it's literally just levels in a DAW when panning, perhaps in consoles and the analogue world there is some phase shifts as well as components drift per channel over time. M
__________________
https://www.marcuscliffe.com/ |
|
|
|
01-03-2024, 02:53 PM
|
#32 | ||
|
Human being with feelings
Join Date: Nov 2015
Location: Alaska
Posts: 321
|
Quote:
Quote:
EDIT: found https://forum.cockos.com/showpost.ph...32&postcount=7 and https://forum.cockos.com/showpost.ph...36&postcount=8 from Schaw.
Last edited by GrizzlyAK; 01-03-2024 at 03:15 PM. |
||
|
|
![]() |
| Thread Tools | |
|
|