Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

DSP 1. For a music file of suitable format(.mp3, .dat etc.) add a coloured rando

ID: 1714855 • Letter: D

Question

DSP

1.

For a music file of suitable format(.mp3, .dat etc.) add a coloured random noise centered at 8KHzso that the SNR is 10dB with a Matlab program. Remove the noise by a lowpass filter of order 5 and a cutoff frequency of 4.5 KHz (Assume sampling frequency=44.1 KHz).

And calculate the output SNR.

Demonstrate the effectiveness by playing various music files. Also realize the filter and compare the results obtained using TMS 6713 processor.

Critically analyze the results obtained in terms of the SNR at the output.

Compare the SNR performance obtained when the filter order is increased to 10 by a suitable Matlab program.

Explanation / Answer

this is some sort of code which might help you. I am sorry I could not do exactly what you asked

vFs = 1000;
sig_r = wavread('RecvdSignal.wav',vFs);
sig_o = wavread('RefSignal.wav',vFs);
wavplay(sig_o,vFs);
subplot(2,3,1)
plot(sig_r)
subplot(2,3,2)
plot(sig_o)
sig_r_fft = fft(sig_r);
sig_o_fft = fft(sig_o);

subplot(2,3,3)
plot(abs(sig_r_fft))
subplot(2,3,4)
plot(abs(sig_o_fft))

sig_new = zeros(1000,1);

i = 1;
while i<999
if (abs(sig_r_fft(i)) > 49)
sig_new(i) = abs(sig_r_fft(i));
else sig_new(i) = 0;
end
  
i = i+1;
end
subplot(2,3,5)
plot(sig_new)
%subplot(2,3,6)
%plot(sig_new_timedomain)
sig_new_timedomain = ifft(sig_new,vFs)
wavplay(sig_new_timedomain,vFs);

and this is how you can generate a colored noise