From d732a8831e9f7f4edcb19a0a39d785fe84e7fc16 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 24 Mar 2021 00:24:10 -0700 Subject: Update the UHJ decoding coefficients --- core/uhjfilter.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/uhjfilter.cpp b/core/uhjfilter.cpp index 3fbec3b3..5cb7d0ab 100644 --- a/core/uhjfilter.cpp +++ b/core/uhjfilter.cpp @@ -215,15 +215,18 @@ void allpass_process(al::span dst, const float *RESTRICT src) } // namespace -/* Encoding 2-channel UHJ from B-Format is done as: +/* Encoding UHJ from B-Format is done as: * * S = 0.9396926*W + 0.1855740*X * D = j(-0.3420201*W + 0.5098604*X) + 0.6554516*Y * * Left = (S + D)/2.0 * Right = (S - D)/2.0 + * T = j(-0.1432*W + 0.6511746*X) - 0.7071068*Y + * Q = 0.9772*Z * - * where j is a wide-band +90 degree phase shift. + * where j is a wide-band +90 degree phase shift. T is excluded from 2-channel + * output, and Q is excluded from 2- and 3-channel output. * * The phase shift is done using a FIR filter derived from an FFT'd impulse * with the desired shift. -- cgit v1.2.3