projectus.freehost7.com:UG and PG level projects,mini projects and many more here ...



 

 

 

Matlab code to produce FLANGING

Rf1=6;

for n=Rf1+1:1:8000

betaf1(n)=round(Rf1/2*(1-cos(n*pi/12)));

yf1(n)=y1(n)+0.8*y1(n-betaf1(n));

end

Rf2=6;

for n=Rf2+1:1:8000

betaf2(n)=round(Rf2/2*(1-cos(n*pi/12)));

yf2(n)=y2(n)+0.8*y2(n-betaf2(n));

end

Rf3=6;

for n=Rf3+1:1:8000

betaf3(n)=round(Rf3/2*(1-cos(n*pi/12)));

yf3(n)=y3(n)+0.8*y3(n-betaf3(n));

end

Rf4=6;

for n=Rf4+1:1:8000

betaf4(n)=round(Rf4/2*(1-cos(n*pi/12)));

yf4(n)=y4(n)+0.8*y4(n-betaf4(n));

end

Rf5=6;

for n=Rf5+1:1:8000

betaf5(n)=round(Rf5/2*(1-cos(n*pi/12)));

yf5(n)=y5(n)+0.8*y5(n-betaf5(n));

end

Rf6=6;

for n=Rf6+1:1:8000

betaf6(n)=round(Rf6/2*(1-cos(n*pi/12)));

yf6(n)=y6(n)+0.8*y6(n-betaf6(n));

end

Rf7=6;

for n=Rf7+1:1:8000

betaf7(n)=round(Rf7/2*(1-cos(n*pi/12)));

yf7(n)=y7(n)+0.8*y7(n-betaf7(n));

end

Rf8=6;

for n=Rf8+1:1:8000

betaf8(n)=round(Rf8/2*(1-cos(n*pi/12)));

yf8(n)=y8(n)+0.8*y8(n-betaf8(n));

end

yfr=[yf1' yf2' yf3' yf4' yf5' yf6' yf7' yf8'];

sound(yf1,fs)

pause(1)

sound(yf2,fs)

pause(1)

sound(yf4,fs)

pause(1)

sound(yf5,fs)

pause(1)

sound(yf6,fs)

pause(1)

sound(yf7,fs)

pause(1)

sound(yf8,fs)