IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
foo_dsp_midside, Converts L/R to MS and vice versa.
xnor
post Apr 29 2011, 18:31
Post #1





Group: Developer
Posts: 961
Joined: 29-April 11
From: Austria
Member No.: 90198



Hello fb2k users,

here's a simple plugin that converts Left/Right stereo channels to Mid/Side channels.

The conversion is very simple: M=(L+R)/2; S=(L-R)/2.

The plugin can convert
  • L/R to MS
  • MS to L/R
  • L/R to M (the result is a single mono channel)
  • L/R to S (mono like above)


Next plugin will be more complex, I promise. wink.gif


Download

This post has been edited by xnor: May 8 2011, 00:08


--------------------
"But you refuse to [..] back your claims of inaudibility."-amirm
Go to the top of the page
+Quote Post
markanini
post Apr 29 2011, 23:42
Post #2





Group: Members
Posts: 555
Joined: 22-December 03
From: Malmö, Sweden
Member No.: 10615



Any one else having trouble with the download links?
I've found these effects useful on early stereo recordings with non-entered vocals or bass. Nice to see a native plugin of this type.
Go to the top of the page
+Quote Post
mudlord
post Apr 30 2011, 04:26
Post #3





Group: Developer (Donating)
Posts: 818
Joined: 1-December 07
Member No.: 49165



You could upload this to the FB2K upload forum, you know....
Go to the top of the page
+Quote Post
Takaji
post Apr 30 2011, 04:30
Post #4





Group: Members
Posts: 252
Joined: 17-June 05
Member No.: 22787



Forgive my ignorance, but can you explain what the side and mid channels are used for?
Go to the top of the page
+Quote Post
xnor
post Apr 30 2011, 13:39
Post #5





Group: Developer
Posts: 961
Joined: 29-April 11
From: Austria
Member No.: 90198



Ok, now I know and uploaded it to the designated forum: download.
I'd be grateful if somebody could edit the first post and replace the download links with the link above.


@Takaji: One use case would be to listen to the mid or side channel only (similar to what the centercut dsp plugin is used for). Another one would be converting to MS, processing mid and side channel separately and finally converting back to L/R again.

This post has been edited by xnor: Apr 30 2011, 13:43


--------------------
"But you refuse to [..] back your claims of inaudibility."-amirm
Go to the top of the page
+Quote Post
Steve Forte Rio
post Apr 30 2011, 14:26
Post #6





Group: Members
Posts: 469
Joined: 4-October 08
From: Ukraine
Member No.: 59301



Where it could be useful - converting from L/R to M/S?

This post has been edited by Steve Forte Rio: Apr 30 2011, 14:26
Go to the top of the page
+Quote Post
xnor
post Apr 30 2011, 16:43
Post #7





Group: Developer
Posts: 961
Joined: 29-April 11
From: Austria
Member No.: 90198



See the second use case in my post above.

It's definitely a plugin that has very limited use, but as I said it's my starting point into fb2k DSP plugin development.

This post has been edited by xnor: Apr 30 2011, 16:44


--------------------
"But you refuse to [..] back your claims of inaudibility."-amirm
Go to the top of the page
+Quote Post
eweitzman
post Mar 5 2012, 19:28
Post #8





Group: Members
Posts: 8
Joined: 20-August 06
Member No.: 34264



Too bad there aren't any other DSPs that can run independently on each channel, like a dual mono equalizer.

How do you deal with the the gain change when re-applying the M/S processor to a M/S signal to get back to L/R?

- Eric
Go to the top of the page
+Quote Post
xnor
post Mar 6 2012, 22:39
Post #9





Group: Developer
Posts: 961
Joined: 29-April 11
From: Austria
Member No.: 90198



Well some plugins like the graphic equalizer or certain vst equalizers offer dual mono options.

About the gain change, do you mean after you processed the MS signal with lets say a dual mono EQ? I guess you'll have to process a couple of files to 32-bit wav and scan the resulting files with ReplayGain to see if there's any clipping (peak > 1.0).

Just converting from L/R to MS to L/R shouldn't cause any gain changes.

This post has been edited by xnor: Mar 6 2012, 22:41


--------------------
"But you refuse to [..] back your claims of inaudibility."-amirm
Go to the top of the page
+Quote Post
eweitzman
post Mar 15 2012, 08:49
Post #10





Group: Members
Posts: 8
Joined: 20-August 06
Member No.: 34264



Thanks for the pointer to your dual mono equalizer!

There is always a 6db gain increase when you go from L/R to M/S to L/R. Remember that both transformations sum for mid (or left) and subtract for side (or right).

The first transformation is

M = L + R
S = L - R

The second one is

L' = M + S
R' = M - S

which becomes

L' = (L + R) + (L - R) = 2L
R' = (L + R) - (L - R) = 2R

- Eric
Go to the top of the page
+Quote Post
foosion
post Mar 15 2012, 10:30
Post #11





Group: FB2K Moderator (Donating)
Posts: 4474
Joined: 24-February 03
Member No.: 5153



QUOTE (eweitzman @ Mar 15 2012, 08:49) *
The first transformation is

M = L + R
S = L - R
That is different from the transformation given in the first post which includes a division by 2.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
eweitzman
post Mar 15 2012, 17:36
Post #12





Group: Members
Posts: 8
Joined: 20-August 06
Member No.: 34264



QUOTE (foosion @ Mar 15 2012, 02:30) *
QUOTE (eweitzman @ Mar 15 2012, 08:49) *
The first transformation is

M = L + R
S = L - R
That is different from the transformation given in the first post which includes a division by 2.

Yes, I see it now, thanks. That's how the author handles the gain issue. In hardware, one would attenuate the final recombined L/R to keep noise low and to allow an insert to work on the bigger signals, all assuming there's enough headroom. It doesn't matter where you attenuate given foobar's wide internal bit depth as long as the inserts don't add much more gain.

I just used the plugin and notice that there are four options for using it. Do you know which ones divide by 2 and which ones don't?

- Eric
Go to the top of the page
+Quote Post
xnor
post Mar 15 2012, 19:08
Post #13





Group: Developer
Posts: 961
Joined: 29-April 11
From: Austria
Member No.: 90198



The options to MS, to M and to S all divide by 2.

Converting back to L/R assumes that the values where divided beforehand:
M=(L+R)/2; S=(L-R)/2
therefore M+S = L and M-S = R.

This post has been edited by xnor: Mar 15 2012, 19:12


--------------------
"But you refuse to [..] back your claims of inaudibility."-amirm
Go to the top of the page
+Quote Post
Fujak
post Dec 2 2013, 14:22
Post #14





Group: Members
Posts: 1
Joined: 26-February 10
Member No.: 78555



QUOTE (xnor @ Apr 29 2011, 18:31) *
Hello fb2k users,

here's a simple plugin that converts Left/Right stereo channels to Mid/Side channels.


Hi,

I have some problems using this component. I'm using Foobar 1.2.9 and after installing the dll I receive the following message: “This component is missing a required dependency, or was made for a different version of foobar2000.”

Does it mean, that it will not run under 1.2.9 any longer? And if so, which Foobar version is required?

Any helpful tipp is appreciated.
Fujak
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th November 2014 - 04:36