coding wav +Noise+Penguatan

download coding wav +Noise+Penguatan

If you can't read please download the document

description

wavplay

Transcript of coding wav +Noise+Penguatan

clcclear ally1=wavread('music.wav');Fs=44000;y2=y1(1:300000);t=(1:300000)/Fs;%wavplay(y2,Fs,'async') % Sinyal asli dimainkansubplot(2,1,1)plot (t,y2)%axis ([0 3 -1.6 1.6]);N=length(y2) ;%menghitung dimensi file wavvar = 0.5; noise_1=var*randn(N,1); %membangkitkan noise Gaussiany_1n=y2 + noise_1'; %menambahkan noise ke file%wavplay(y_1n,Fs,'async') % Sinyal bernoise dimainkan subplot(2,1,2)plot (t,y_1n)%axis ([0 3 -1.6 1.6]);/////////////////////////////////////////////////////////clcclear ally1=wavread('music.wav');Fs=44000;y2=y1(1:300000);t=(1:300000)/Fs;%wavplay(y2,Fs,'async') % Sinyal asli dimainkansubplot(2,1,1)plot (t,y2)axis ([0 3 -1.6 1.6]);amp=2;y3=amp*y2; %wavplay(y3,Fs,'async') % Memainkan audio sinyal setelah penguatan subplot(2,1,2)plot (t,y3)axis ([0 3 -2.4 2.4]);