How to make Mid-Side processing?
-
@Win-Conway Ok cool
Please if you can, just try the snippet to see if it works for you, because on my side it has exactly the same behaviour than in a DAW with M/S plugins,
For instance in Hise when I apply a saturation (just to have something obvious), M and S are treated independently, a simple gain module does the trick as well. -
@Win-Conway said in How to make Mid-Side processing?:
Your Mid is wrong.
It is Mid = Left and Right channels both separated and panned (Not balance) to Mono, you can achieve this with zero balance and zero width if your software only supports stereo channels.Unless I don't understand, it is the same than L+R
Your Side is wrong.
Side = L+R phase cancelled by Mid.
This will give you a stereo input and two stereo (or summed mono if you wish) outputs, these outputs can be processed as you see fit, then recombined (summed) to a single stereo ouput.I agree, I disagree
I think you are talking about a stereo recording made specifically for M/S encoding, which is not the objective here at all.
Totally, this is why here, it can't be called M/S, it doesn't stick to the very definition of the M/S formula.
Now I see your point
But... If I have the same result in a DAW with an M/S plugin and here in HISE, I don't know where/how you can apply the technique you call M/S, except by doing your own routing? -
Ok i think i see why this has gotten messy, you are talking about a Mid/Side recording, so Mid is on one channel and Side is on the other, I am talking about having the ability in an effect plugin to effect only the mids or only the sides from a normal stereo signal.
I think @orange wants what i am suggesting, Mid/Side separation for a standard stereo signal.
-
The definition of Mids and Sides is simple, Mids are the Mono signals, sides are everything else.
-
OK, going in circles, just wait till i do a screen recording to show it ;)
-
we both agree (I think)
but please try the snippet when you can and tell me if it works or not on a song for instance because here it works -
@ustk it's working for me on a song. Its side is separate from the mid, if I can recall ch 5&6 are the side and 7&8 mid, but I'm not home now to be sure.
-
@Jay Glad it works for you
almost, the Mid is 7-8 and Side 9-10 -
@Jay rereading the tgread, im unsure why there would be any gain changing or encoding decoding, non of that is needed ?
I will look at the snippet as soon as i get chance, I dunno, maybe HISE cant do simple things like split a stereo signal in to two mono and pan etc, I just assumed this was as easy as doing it in a DAW. -
@Win-Conway I haven't try it in a daw yet, just in HISE. But if you can take a look a the code and fix anything you think needs fixing will be good.
-
@Jay i will be home tomorrow and do a vid showing it done with just routing and phase invert ;)
-
@orange I implemented the Mid-Side into a plugin I'm building but when compiled there is no audio coming out, I can see is doing something in the meters but no sound. Any Idea?
-
@Jay maybe a routing issue. Did you check the outputs?
-
@orange yes, but it work fine in HISE standalone and VST
-
@ustk when exporting the plugin no audio is coming out
-
@Jay have you added the MS alongside a standard LR?
have you implemented a "switching" button for selecting the modes? so you can select bus 1-2 for LR or 11-12 for MS by the mean of gain modules for instance... -
It might be because of these two lines in the "MS Encode" module:
channels[0] * 0; channels[1] * 0;
Just get a rid of that, it is muting the LR (but you should have something in your MS path anyway, it is working for me when I export a standalone)
-
@ustk All I did was just add this to my project(plugin) and I have assigned what fx goes to what, but nothing for selecting bus 1-2 or 11-12 for MS, just as you add the Gain module
-
@ustk now after deleting this, the audio is passing but there's not fx happening
-
Do you have 12 channels ?
Have you inserted the MS section at the top of your FX modules?
Are the MS FXs at the right place (between the encoder/decoder)?
It's hard to tell with limited information ;)