This is just an outline of what I did (assume that all my dimensions fit):
(code that imports audio to read audio as function x) X=fft(x); (code to define time t and frequency f) H=L+M*exp(-1i*2*pi*f*N)+O*exp(-1i*2*pi*f*P); % This is where it gets tricky % In the frequency domain I have the function above where f is the frequency % variable and L M N O P are arbitrary values Y=X.*H; % again assume dimensions fit y=real(ifftshift(ifft(Y)*length(t))); %Taking the inverse fft and fftshift was the only way I could get back a signal % Once again assume the dimensions fit
Here L M N O P = [.9 .75 1.0 .5 .5]
Is this legit? or am I just pulling my own leg? Is it an actual "echo?" Or am I just manipulating the signal to make it seem like an echo?