Professional Documents
Culture Documents
Spring 2013
5. To create header files out of these responses, read the impulse response in MATLAB
using wavread command. You may also require audio tool Audacity to manipulate
the sampling frequencies and the response time considering the memory and speed
constrain.
NOTE:
While implementing the effects using circular buffer, a limitation is imposed on the value
that can be given to the registers BRC0 and BK03. The value cannot exceed 4096. In
order to overcome this limitation we assign values to these registers in the following way
instead of conventional way. For more details you can refer to CCS Help file Assembler
Warning On Use of MMR Address (warning: W9999).
MOV #FIR_len, mmap (BK03)
MOV #FIR_len-1, mmap (BRC0)
By doing so you can increase the range of values that can be assigned to these registers
from 4096 to approx 14000.
block. If the ith input block is represented by Xi(n) and filter coefficients are represented as
h(n), N point FFTs of Xi(n) and h(n) are computed and their product is obtained. Now
IFFT of this product is computed. The first L-1 values of the resulting output are discarded
and remaining output values are concatenated at each stage to form the correct output.
Example: - Suppose our filter length is 12 and the FFT size we are interested is128, i.e.,
L=12 and N=128, then M=N-L+1=117. So every time we collect 117 values of data and
process them. So, each time we insert the last 11 values of the previous input data block to
the current input data block. Also we append 116 zeros to the filter coefficients. Let the input
block be X(n) and impulse response be H(n), now
X(k)=FFT(X(n)) and H(k)=FFT(H(n)) are computed (128 point FFT).
Y(n)=IFFT(X(k)* H(k)) is computed and the first 11 values are discarded each time and
remaining samples are sent as output.
Exercise
This part of the exercise is to understand and implement overlap-save method. The entire code
for the overlap-save method is given to you with few portions of the code missing (These
portions are indicated by XXX in the code). You need to complete the missing portions of the
code. The filter given to you is a low pass filter of length 12. The FFT size you have to use is
128. Calculate the cutoff frequency of the given filter by observing the output.
Lab 7
Verification Page
Names:
TA Name:
Group Number:
.
Demonstrate the various audio effects using the impulse responses provided to you and
get it verified by your TA.
Explain why the output gets distorted beyond certain sampling frequency for a given
length of impulse response. Give a quantitative analysis using profiling.
Comment on the output observed by increasing the size of the impulse response.
Experimentally measure and plot the frequency response of the filter given to you.
Verified: ..
Date: