Sie sind auf Seite 1von 8

Elec 484 Assignment 3

Gerald Leung
V00659924

1. See part1 folder in


2. The Toms Diner.wav was convoluted with another .wav file consisting of three generated pluck sounds in
Audacity as well as the flute.wav file convolved with my generated rhythmic pattern audio file. The results
sounded like segments of the audio file missed in together to form individual segments. See part2 folder for
software and sound files.

3.

FIR Comb Filter


The following derivation is the Z transfer function of an FIR Comb Filter with a Delay of M = 4
[ ]

[ ]

( )

( )[

]
]

( )
The following figures are the Frequency and Impulse response of the FIR Comb filter with Delay M = 4 and g =
1.5

The following is the Pole Zero plot of the comb filter with g = 1.5:

IIR Comb Filter


The following derivation is the Z transfer function of an IIR Comb Filter with a Delay of M = 4
[ ]

[ ]

( )
The following figures are the Frequency and Impulse response of the IIR Comb filter with Delay M = 4 and g = 1.5

The following is the Z plane plot of the IIR comb filter:

4.
For FIR Comb Delay causes a more crisp echo on the audio file because it has no feedback and it is only repeating one
sample at a time of delay M. The IIR Comb delay filter causes more significant echo effect because the filter is recursive
which plays back the echoed effects of the previous samples and adds it to the current output sample. The range of
delays also affects the time range of the echo effect a longer delay creates a more significant echo effect in IIR Filter.
For example, a longer delay time would sound like an echo in a room with more echo sounds bouncing off the wall . See
part4.m, fir_comb.m and iir_comb.m for matlab code on implementing the IIR and FIR Comb delay filters and
5.
See Part5 folder for matlab code and out_vibrato.wav file for results

6.
The following is the derivation of the transfer function of an All Pass filter.

( )

)
)

And these are the following filter design specifications:


1) Fs = 8 KHz
2) Fc = 2 KHz
3) Fb = 100 Hz
Therefore:

( )
2 Poles:
0 + 0.9615i

0 - 0.9615i

2 zeros:
0 + 1.0401i

0 - 1.0401i

The following figure is the frequency response of the All Pass Filter. Note that the Phase response in the bottom graph is
repeated at 0 to -360 degrees to -720 degrees etc.

And the following figure is the same frequency response in POI:

From both graphs, we can confirm that the magnitude and phase response are both identical.

7.
The following figure is the group delay of the all pass filter in Part 6.

And the following graphs are AM signals applied to the filter near the minimum and maximum group delay
respectively.

The following figure is the Input signal in blue and Output signal In Red at the carrier frequency of 1 Khz). The
phase delay is 0 degrees, or 0 sample delay as expected in the phase and group delay graph.

The following figure is the Input signal in blue and Output signal In Red at the carrier frequency of 2 Khz (Center
Frequency). The phase delay is -180 degrees as expected in the phase and group delay graph.

Part 8
I first created 15 seconds of white noise. In each segment, I varied the frequency of the wahwah filter to create
different audio effects. I also tried using both IIR and FIR filters on the audio segments that have already passed
through the wahwah filter. Finally, I added a various vibrato effects to the white noise. Open part8.wav file in Part8
folder for sound collage result. See the part8 folder for matlab code and results.

Das könnte Ihnen auch gefallen