Question: Question # 3 : ( Audio Filtering ) In this problem, we will apply filters to audio signals to observe how these filters change the

Question #3: (Audio Filtering)
In this problem, we will apply filters to audio signals to observe how these filters change the audio's sound. The audio is loaded in the Lab's skeleton code. Note that the signals in this question correspond to N=41 samples such that -20n20. For plotting frequency responses, choose on a range of reasonable frequencies.
(a) For the filter coefficients a (or a[n]) in the skeleton code, compute the filter's frequency response with FreqResponse to get output Ha. Plot the magnitude and phase responses of Ha. Answer in your comments: Is this a lowpass, highpass, bandpass, or bandstop filter?
(b) Use soundsc to play the input x in the skeleton code. Apply the filter a on x with conv and store the result in xa. Play xa with soundsc.
Answer in your comments: How does x(original sound) and xa (filtered sound) differ? Relate this difference to the filter magnitude response.
(c) For the filter coefficients b(or b[n]) in the skeleton code,compute the filter's frequency response with FreqResponse to get the output Hb. Plot the magnitude and phase responses of Hb.
Answer in your comments: Is this a lowpass, highpass, bandpass, or bandstop filter?
(d) Apply the filter b on x with conv and store the result in xb. Play xb with soundsc.
Answer in your comments: How does x(original sound) and xb(filtered sound) differ? Relate this difference to the filter magnitude response.
(e) Use conv function to convolve a[n] with [n]-b[n] to get cascaded filter coefficients c. Compute the resulting cascaded frequency response Hc. Plot the magnitude and phase responses of Hc. Answer in your comments: Is this a lowpass, highpass, bandpass, or bandstop filter? Explain why we get this result.
(f) Apply the filter c on x with conv and store the result in xc. Play xc with soundsc. Answer in your comments: How does x(original sound) and xc(filtered sound) differ? Relate this difference to the filter magnitude response.
(g) Plot the impulse response of the three filters above, using the stem function. Answer in your comments: What is the distinguishing difference between these three impulse responses?
NEED HELP WRITING CODE
 Question #3: (Audio Filtering) In this problem, we will apply filters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!