[LAD] Mixing audio: Implementing pan and balance

2013-03-11 Thread Tim E. Real
Hi, I need some advice, clear up some confusion: I noticed our app uses this pan formula: vol_L = volume * (1.0 - pan); vol_R = volume * (1.0 + pan); where volume is the fader value, pan is the pan knob value which ranges between -1.0 and 1.0, and vol_L and vol_R are the fact

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Geoff Beasley
On 03/12/2013 04:23 PM, Tim E. Real wrote: Hi, I need some advice, clear up some confusion: I noticed our app uses this pan formula: vol_L = volume * (1.0 - pan); vol_R = volume * (1.0 + pan); where volume is the fader value, pan is the pan knob value which ranges between -

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Fons Adriaensen
On Tue, Mar 12, 2013 at 01:23:02AM -0400, Tim E. Real wrote: > I noticed our app uses this pan formula: > > vol_L = volume * (1.0 - pan); > vol_R = volume * (1.0 + pan); > > where volume is the fader value, pan is the pan knob value > which ranges between -1.0 and 1.0, and vol_L a

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Tim E. Real
On March 12, 2013 08:41:01 PM you wrote: > On 03/12/2013 04:23 PM, Tim E. Real wrote: > > Hi, I need some advice, clear up some confusion: > > > > I noticed our app uses this pan formula: > > vol_L = volume * (1.0 - pan); > > vol_R = volume * (1.0 + pan); > > > > where volume is the

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Paul Davis
On Tue, Mar 12, 2013 at 3:08 PM, Tim E. Real wrote: > lance, but slightly different levels, but not a true 'stereo pan'. > > But having said that, yes I'm wondering about a true 'stereo pan' feature. > first, terminology. just as when describing track or bus I/O configuration, "mono" and 'stereo

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Tim E. Real
On March 12, 2013 03:08:18 PM Tim E. Real wrote: > On March 12, 2013 08:41:01 PM you wrote: > > On 03/12/2013 04:23 PM, Tim E. Real wrote: > > > Hi, I need some advice, clear up some confusion: > > > > > > I noticed our app uses this pan formula: > > > vol_L = volume * (1.0 - pan); > > > vol_R

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Tim E. Real
On March 12, 2013 03:13:44 PM you wrote: On Tue, Mar 12, 2013 at 3:08 PM, Tim E. Real wrote: lance, but slightly different levels, but not a true 'stereo pan'. But having said that, yes I'm wondering about a true 'stereo pan' feature. first, terminology. just as when describing track or bu

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Tim E. Real
On March 12, 2013 09:56:15 AM Fons Adriaensen wrote: > On Tue, Mar 12, 2013 at 01:23:02AM -0400, Tim E. Real wrote: > > I noticed our app uses this pan formula: > > vol_L = volume * (1.0 - pan); > > vol_R = volume * (1.0 + pan); > > > > where volume is the fader value, pan is the pan

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Paul Davis
On Tue, Mar 12, 2013 at 4:24 PM, Tim E. Real wrote: > > I will look at having separate pan controls for each channel on one strip, > as I'm reminded from talking to Paul that Ardour has this :) > not anymore ... ___ Linux-audio-dev mailing list Linux-

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Tim E. Real
On March 12, 2013 04:28:19 PM you wrote: On Tue, Mar 12, 2013 at 4:24 PM, Tim E. Real wrote: I will look at having separate pan controls for each channel on one strip, as I'm reminded from talking to Paul that Ardour has this :) not anymore ... Oh wow, haven't tried A3 yet. [Looks at,

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-12 Thread Fons Adriaensen
On Tue, Mar 12, 2013 at 04:24:49PM -0400, Tim E. Real wrote: > Interesting about the crossover bit. > Wow, I considered adding selectable pan laws but didn't realize crossovers. The rationale behind this is that at LF the L and R signals will add more or less in phase, while at HF the phases a

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-13 Thread Tim E. Real
On March 12, 2013 09:22:39 PM Fons Adriaensen wrote: > On Tue, Mar 12, 2013 at 04:24:49PM -0400, Tim E. Real wrote: > > Interesting about the crossover bit. > > Wow, I considered adding selectable pan laws but didn't realize > > crossovers. > > The rationale behind this is that at LF the L and R s

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-13 Thread Paul Davis
On Wed, Mar 13, 2013 at 4:16 AM, Tim E. Real wrote: > > Took me a while of staring at the 'Panning' picture on Ardour's features > page. There's the missing link - the relative gain you mentioned - which > is the slider between the L and R icons. > If I may refer to that little slider as 'bala

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-14 Thread Jörn Nettingsmeier
On 03/12/2013 08:08 PM, Tim E. Real wrote: But having said that, yes I'm wondering about a true 'stereo pan' feature. How would such a feature work? there is no one true stereo pan. a pan law for intensity stereo (i.e. a panned image or an XY coincident microphone pair) would increase one ch

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-14 Thread Paul Davis
On Thu, Mar 14, 2013 at 6:42 AM, Jörn Nettingsmeier < netti...@stackingdwarves.net> wrote: > On 03/12/2013 08:08 PM, Tim E. Real wrote: > > But having said that, yes I'm wondering about a true 'stereo pan' feature. >> How would such a feature work? >> > > there is no one true stereo pan. > > a pa

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-14 Thread Jörn Nettingsmeier
On 03/14/2013 12:37 PM, Paul Davis wrote: On Thu, Mar 14, 2013 at 6:42 AM, Jörn Nettingsmeier mailto:netti...@stackingdwarves.net>> wrote: On 03/12/2013 08:08 PM, Tim E. Real wrote: But having said that, yes I'm wondering about a true 'stereo pan' feature. How woul

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-14 Thread Paul Davis
On Thu, Mar 14, 2013 at 2:50 PM, Jörn Nettingsmeier < netti...@stackingdwarves.net> wrote: > > the problem is, you usually have a mixture of the above. hence, no way to > get the stereo panner right. unless the user knows exactly what s/he is > doing, and then s/he doesn't really need a stereo pan

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-15 Thread Tim E. Real
On March 14, 2013 11:42:41 AM you wrote: > On 03/12/2013 08:08 PM, Tim E. Real wrote: > > But having said that, yes I'm wondering about a true 'stereo pan' feature. > > How would such a feature work? > > there is no one true stereo pan. > > a pan law for intensity stereo (i.e. a panned image or a

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread John Rigg
Nobody has mentioned it yet but there is a good reason why it's useful to have pan controls on each channel of a stereo bus: it makes it easy to check for phase errors by panning both sides to the middle to check in mono. I do this in Ardour 2 (and on hardware mixing consoles) all the time. The end

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread Ralf Mardorf
On Sat, 2013-03-16 at 09:50 +, John Rigg wrote: > ... check for phase errors ... on hardware mixing consoles ... I'm doing it too. Mono compatibility seems to be less important for the Linux community. If I take a look at screenshots for TotalMix, it does provide a mono switch, never noticed t

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread Ralf Mardorf
On Sat, 2013-03-16 at 11:16 +0100, Ralf Mardorf wrote: > A mono switch is needed. If possible with loudness compensation. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread John Rigg
On Sat, Mar 16, 2013 at 11:16:46AM +0100, Ralf Mardorf wrote: > On Sat, 2013-03-16 at 09:50 +, John Rigg wrote: > > ... check for phase errors ... on hardware mixing consoles ... > > I'm doing it too. Mono compatibility seems to be less important for the > Linux community. There's possibly a

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread Paul Davis
On Sat, Mar 16, 2013 at 9:25 AM, John Rigg wrote: > > A lot of mixing consoles don't provide a mono switch, but it's usually > possible to work around it with sub groups. I still have to work out a > convenient method for mono checking in Ardour 3. > which means i need to write up a page or two

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread Fons Adriaensen
On Sat, Mar 16, 2013 at 09:25:46AM -0400, Paul Davis wrote: > On Sat, Mar 16, 2013 at 9:25 AM, John Rigg wrote: > > > > > A lot of mixing consoles don't provide a mono switch, but it's usually > > possible to work around it with sub groups. I still have to work out a > > convenient method for mon

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread Ricardus Vincente
On 03/16/2013 09:25 AM, John Rigg wrote: > A lot of mixing consoles don't provide a mono switch, but it's usually > possible to work around it with sub groups. I still have to work out a > convenient method for mono checking in Ardour 3. Doesn't A3 have a mono button on the new monitor section?

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread Ralf Mardorf
On Sat, 2013-03-16 at 18:23 +, Fons Adriaensen wrote: > On Sat, Mar 16, 2013 at 09:25:46AM -0400, Paul Davis wrote: > > On Sat, Mar 16, 2013 at 9:25 AM, John Rigg wrote: > > > > > > > > A lot of mixing consoles don't provide a mono switch, but it's usually > > > possible to work around it wit

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-16 Thread Fred Gleason
On Mar 16, 2013, at 06:16 46, Ralf Mardorf wrote: > I don't know how they handle it today, in the past German radio station > didn't play recordings with phase errors and they neither fixed it in > any way to play it. This is very much the way it is in the US today, where phasing errors (or even

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-17 Thread John Rigg
On Sat, Mar 16, 2013 at 03:47:12PM -0400, Ricardus Vincente wrote: > On 03/16/2013 09:25 AM, John Rigg wrote: > > > A lot of mixing consoles don't provide a mono switch, but it's usually > > possible to work around it with sub groups. I still have to work out a > > convenient method for mono check

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-17 Thread Paul Davis
On Sun, Mar 17, 2013 at 5:17 AM, John Rigg wrote: > On Sat, Mar 16, 2013 at 03:47:12PM -0400, Ricardus Vincente wrote: > > On 03/16/2013 09:25 AM, John Rigg wrote: > > > > > A lot of mixing consoles don't provide a mono switch, but it's usually > > > possible to work around it with sub groups. I

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-17 Thread John Rigg
On Sun, Mar 17, 2013 at 06:54:18AM -0400, Paul Davis wrote: > On Sun, Mar 17, 2013 at 5:17 AM, John Rigg wrote: > > > On Sat, Mar 16, 2013 at 03:47:12PM -0400, Ricardus Vincente wrote: > > > Doesn't A3 have a mono button on the new monitor section? > > > > Yes it does. I had (stupidly) switched

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-17 Thread John Rigg
On Sat, Mar 16, 2013 at 06:23:09PM +, Fons Adriaensen wrote: > Zita-mu1 is a simple Jack client used to organise stereo monitoring > during recording and mixing. More here: > > and download from >

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-23 Thread Raphaël BOLLEN
On 03/16/2013 07:23 PM, Fons Adriaensen wrote: On Sat, Mar 16, 2013 at 09:25:46AM -0400, Paul Davis wrote: On Sat, Mar 16, 2013 at 9:25 AM, John Rigg wrote: A lot of mixing consoles don't provide a mono switch, but it's usually possible to work around it with sub groups. I still have to work

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-23 Thread Jörn Nettingsmeier
On 03/23/2013 06:05 PM, Raphaël BOLLEN wrote: On 03/16/2013 07:23 PM, Fons Adriaensen wrote: On Sat, Mar 16, 2013 at 09:25:46AM -0400, Paul Davis wrote: On Sat, Mar 16, 2013 at 9:25 AM, John Rigg wrote: A lot of mixing consoles don't provide a mono switch, but it's usually possible to work

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread Raphaël BOLLEN
On 03/23/2013 06:05 PM, Raphaël BOLLEN wrote: On 03/16/2013 07:23 PM, Fons Adriaensen wrote: On Sat, Mar 16, 2013 at 09:25:46AM -0400, Paul Davis wrote: On Sat, Mar 16, 2013 at 9:25 AM, John Rigg wrote: A lot of mixing consoles don't provide a mono switch, but it's usually possible to work

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread Raphaël BOLLEN
On 03/24/2013 09:06 AM, Raphaël BOLLEN wrote: On 03/23/2013 06:05 PM, Raphaël BOLLEN wrote: On 03/16/2013 07:23 PM, Fons Adriaensen wrote: On Sat, Mar 16, 2013 at 09:25:46AM -0400, Paul Davis wrote: On Sat, Mar 16, 2013 at 9:25 AM, John Rigg wrote: A lot of mixing consoles don't provide a

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread hermann meyer
Am 24.03.2013 09:46, schrieb Raphaël BOLLEN: Aargh, although only if the inputs are left un-connected, if you stream silence on input 1 cpu % increase is back. I use when ever possible SSE2 to avoid denormals, compile with -msse2 -mfpmath=sse flags and implement as followed:

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread Raphaël BOLLEN
On 03/24/2013 10:49 AM, hermann meyer wrote: Am 24.03.2013 09:46, schrieb Raphaël BOLLEN: Aargh, although only if the inputs are left un-connected, if you stream silence on input 1 cpu % increase is back. I use when ever possible SSE2 to avoid denormals, compile with -msse2 -mfpmath=sse flag

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread Fons Adriaensen
On Sun, Mar 24, 2013 at 01:57:18AM +0100, Jörn Nettingsmeier wrote: > On 03/23/2013 06:05 PM, Raphaël BOLLEN wrote: > > >Awesome, however cpu usage is ~12% on my system when playing silence and > >drops to ~2% with some audio going through. > > smells like a denormals issue. It sure does, but I

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread Raphaël BOLLEN
On 03/24/2013 12:56 PM, Fons Adriaensen wrote: On Sun, Mar 24, 2013 at 01:57:18AM +0100, Jörn Nettingsmeier wrote: On 03/23/2013 06:05 PM, Raphaël BOLLEN wrote: Awesome, however cpu usage is ~12% on my system when playing silence and drops to ~2% with some audio going through. smells like a

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread Fons Adriaensen
On Sun, Mar 24, 2013 at 02:01:27PM +0100, Raphaël BOLLEN wrote: > With the patch I sent, you can leave input 1 un-connected cpu % > stays at ~2% but if you stream silence to it cpu % rises again to > ~10% There should be no difference between those two cases. This means that the 'silence' you sen

Re: [LAD] Mixing audio: Implementing pan and balance

2013-03-24 Thread Raphaël BOLLEN
On 03/24/2013 04:11 PM, Fons Adriaensen wrote: On Sun, Mar 24, 2013 at 02:01:27PM +0100, Raphaël BOLLEN wrote: With the patch I sent, you can leave input 1 un-connected cpu % stays at ~2% but if you stream silence to it cpu % rises again to ~10% There should be no difference between those two