foo_dsp_midside, Converts L/R to MS and vice versa. |
![]() ![]() |
foo_dsp_midside, Converts L/R to MS and vice versa. |
Apr 29 2011, 18:31
Post
#1
|
|
![]() Group: Developer Posts: 304 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
Next plugin will be more complex, I promise. Download This post has been edited by xnor: May 8 2011, 00:08 |
|
|
|
Apr 29 2011, 23:42
Post
#2
|
|
![]() Group: Members Posts: 477 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. |
|
|
|
Apr 30 2011, 04:26
Post
#3
|
|
![]() Group: Developer (Donating) Posts: 717 Joined: 1-December 07 Member No.: 49165 |
You could upload this to the FB2K upload forum, you know....
|
|
|
|
Apr 30 2011, 04:30
Post
#4
|
|
![]() Group: Members Posts: 223 Joined: 17-June 05 From: Winnipeg Member No.: 22787 |
Forgive my ignorance, but can you explain what the side and mid channels are used for?
|
|
|
|
Apr 30 2011, 13:39
Post
#5
|
|
![]() Group: Developer Posts: 304 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 |
|
|
|
Apr 30 2011, 14:26
Post
#6
|
|
![]() Group: Members Posts: 385 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 |
|
|
|
Apr 30 2011, 16:43
Post
#7
|
|
![]() Group: Developer Posts: 304 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 |
|
|
|
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 |
|
|
|
Mar 6 2012, 22:39
Post
#9
|
|
![]() Group: Developer Posts: 304 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 |
|
|
|
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 |
|
|
|
Mar 15 2012, 10:30
Post
#11
|
|
![]() Group: FB2K Moderator (Donating) Posts: 4224 Joined: 24-February 03 Member No.: 5153 |
The first transformation is That is different from the transformation given in the first post which includes a division by 2.M = L + R S = L - R -------------------- http://foosion.foobar2000.org/ - my components for foobar2000
|
|
|
|
Mar 15 2012, 17:36
Post
#12
|
|
|
Group: Members Posts: 8 Joined: 20-August 06 Member No.: 34264 |
The first transformation is That is different from the transformation given in the first post which includes a division by 2.M = L + R S = L - R 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 |
|
|
|
Mar 15 2012, 19:08
Post
#13
|
|
![]() Group: Developer Posts: 304 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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 15:12 |