View Single Post
Old 8th June 2006, 10:18   #10  |  Link
3dsnar
Registered User
 
3dsnar's Avatar
 
Join Date: Dec 2005
Location: Proxima Centauri
Posts: 315
I have informed you of the input included (after you suggested so).
You should read my posts more carefully.
-----------
I am asking to verify my DPLII simmulation decoding algorithm,
not the entire DSfilter.
-----------
Here is the matlab code that I used for downmixing.

function [y, y2]=DPLIIdownmix(s)

FL=s(:,1);
FR=s(:,2);
C=s(:,3);
LFE=s(:,4);
SL=s(:,5);
SR=s(:,6);

y=zeros(length(FL),2)
y2=zeros(length(FL),2);

wgF=1;
wgC=sqrt(0.5);
wgA=sqrt(0.75);
wgB=sqrt(0.25);

Nrm=wgF + wgC + wgC + wgA + wgB;
wgF=wgF/Nrm;
wgC=wgC/Nrm;
wgA=wgA/Nrm;
wgB=wgB/Nrm;


%180 deg phase shifts
y(:,1) = FL*wgF + C*wgC + LFE*wgC - wgA*SL - wgB*SR;
y(:,2) = FR*wgF + C*wgC + LFE*wgC + wgB*SL + wgA*SR;


%90 deg phase shifts
y2(:,1) = FL*wgF + C*wgC + LFE*wgC + wgA*imag(hilbert(SL)) - wgB*imag(hilbert(SR));
y2(:,2) = FR*wgF + C*wgC + LFE*wgC - wgB*imag(hilbert(SL)) + wgA*imag(hilbert(SR));
__________________
Aud-X MP3 5.1 Format

Last edited by 3dsnar; 8th June 2006 at 10:21.
3dsnar is offline   Reply With Quote