
%%
% part B:- Varying more interval (i.e. delay) between echo’s.

%%
[x,Fs,nbits] = wavread('cntry.wav'); %use any audio file you like
sound(x,Fs) %listen to original audio file
h = zeros(1,10000);

% 6 echos added
h(1) = 1;
h(1000) = 1/2;
h(3000) = 1/3;
h(5000) = 1/4;
h(7000) = 1/5;
h(8000) = 1/6;


y = conv(x,h);
y=y/max(y); %normalize filter output
pause(5)
sound(y,Fs);