Correlation

Hi. I made a stereo expander. Now I need a correlator. How to make it?

This is the basic formula for the phase
Phase = arctan(L/R)
So if the phase is 45 or 225 = 1, and phase of 135 and 315 (45) is 1.
For your correlation meter, you need to normalize this value:
Correlation = Phase * Magnitude
Magnitude = (L^2 + R^2)^1/2
So the final formula is:
Correlation = arctan(L/R) * ((L^2 + R^2)^1/2)

@оранжевый
I want to put a correlator in my plugin. How to do this?)

@orange
I want to put a correlator in my plugin. How to do this?)