I'm trying to create a correlation / phase meter that will show the relationship between L channel and R channel. Basically, it outputs 1 if channels are identical, 0 if there's no correlation and -1 if the channels are completely out of phase. From what I looked on DSP forums, the cross-correlation is either IFFT ( FFT(x_padded) * conj(FFT(y_padded) ) or IFFT ( FFT(x_padded) * (FFT(y_padded_reversed) ); x_padded and y_padded are the input signals padded at the end with 0s (for at least the same as their initial size) and y_padded_reverse is y_padded , but time reversed.
Anyway... the idea is that I tried using this, but to no avail. Any help here, or ideas on how I could implement a cross-correlation meter?
Cross-correlation / phase meter
Solved! Found the answer HERE.
Apparently it's easier than I thought – I don't even need to use FFT: it's E{L*R} / sqrt( E{L^2} * E{R^2} ), where E{..} is the averaged (mean), and can be implemented using a low pass filter. I used the Linkwitz-Riley module from usine and works like a charm.
Apparently it's easier than I thought – I don't even need to use FFT: it's E{L*R} / sqrt( E{L^2} * E{R^2} ), where E{..} is the averaged (mean), and can be implemented using a low pass filter. I used the Linkwitz-Riley module from usine and works like a charm.
good news ! 
Who is online
Users browsing this forum: No registered users and 13 guests
