www.pudn.com > dspproject.rar > wanwangmeiqufengsheng.m, change:2016-10-22,size:690b


clear 
clc 
close all 
 
 
[Original,fs]=audioread('a28.wav');%޸ļ· 
 
ts=1/fs; 
N=length(Original)-1; 
t=0:1/fs:N/fs; 
Nfft=N; 
df=fs/Nfft; 
fk=(-Nfft/2:Nfft/2-1)*df; 
 
a1=1,a2=-1,b1=1,b2=-1; 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
SoundLeft=Original(:,1); 
SoundRight=Original(:,2); 
SoundLeft_f=ts*fftshift(fft(SoundLeft,N)); 
SoundRight_f=ts*fftshift(fft(SoundRight,N)); 
 
 
 
% Sound=SoundLeft-SoundRight; 
  
 
NewLeft=a1*SoundLeft+a2*SoundRight; 
NewRight=b1*SoundLeft+b2*SoundRight; 
 
Sound(:,1)=NewLeft; 
Sound(:,2)=NewRight; 
sound(Sound,fs);