Could somone explain the following to me (or the code in matlab to answer the questions)
A simple echo filter can be defined by the difference equation: y[n] = x[n] + α x[n - Δ], where α is the amplitude of the echo and Δ is the echo delay in samples. Clearly, this is an FIR filter.
a) Implement this difference equation in Matlab and confirm its operation with Handel's hallelujah chorus (see help sound). Note, to hear an echo try setting Δ to equal the number of samples in ~100ms, i.e., the sampling frequency divided by 10;
b) Sketch the pole and zero locations in the z-plane for α = 0.8 and Δ = 6;
c) Sketch |H(É)|, i.e., the magnitude response of this filter from zero to half the sampling frequency;
d) What effect do α and Δ have on the shape and number of peaks in the magnitude response? Hint use the Matlab functions fvtool or zplane and freqz.
e) Suggest how a "fading" echo might be implemented by changing the original FIR filter to be IIR. What role do the poles and zeros now play? Confirm your design by implementing this filter in
Matlab.
Any help would be appreciated
Tags: