[MATLAB Scriptfile task]
Design N-band tone vocoder with a given figure (below) in MATLAB implementing the given script file(bands_cutoff). This program should be able to process any sound(.wav) file. Then, graph the band-passed signals and amplitude envelopes extracted(after rectification and low-pass filtering) and waveforms of the original sound and vocoded sound. Additionally, using the output of the script file, make spectrograms of the original sound and the synthesized sound.
close all,
clear all,
clc,
ProjectPath = pwd;
SoundPath = strcat(ProjectPath,'\BirdChirp.wav');
FilterOrder=3;
No_of_Bands=3;
fmin = 200;
fmax = 300;
[y, Fs, nbits] = wavread(SoundPath);
Freq = (bands_cutoff(fmin,fmax,No_of_Bands))/(Fs/2);
L=length(Freq);
subplot(4,3,[1 2 3]); plot(y); title('Original Signal');
c=4;
for r=1:L-1
[b a] = butter(FilterOrder,[Freq(r) Freq(r+1)],'bandpass');
[H F] = freqz(b,a,256,Fs);
FilteredSignal = filter(b,a,y);
subplot(4,3,c); plot(F,abs(H));
str = strcat('Freq. Response of Band-Pass Butter Worth Filter
(Order=',num2str(FilterOrder),') for Freq. Range -
[',num2str(Freq(r)),', ',num2str(Freq(r+1)),']') ;
title(str);
subplot(4,3,c+1); plot(FilteredSignal); title('Filtered
Signal');
subplot(4,3,c+2); spectrogram(FilteredSignal);
title('Spectrogram');
c=c+3;
end
[MATLAB Scriptfile task] Design N-band tone vocoder with a given figure (below) in MATLAB implementing the...
[MATLAB Scriptfile task] Design N-band tone vocoder with a given figure (below) in MATLAB implementing the given script file(bands_cutoff). This program should be able to process any sound(.wav) file. Then, graph the band-passed signals and amplitude envelopes extracted(after rectification and low-pass filtering) and waveforms of the original sound and vocoded sound. Additionally, using the output of the script file, make spectrograms of the original sound and the synthesized sound. Bandpass filter Modulation Band-limiting Envelope detection BPF RECT LPF BPF sine...
LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all close al1: Generate signals for testing the LMS Algorithm 1000 Fs Sampling frequency Sample time 1/Fs 10000: = L Length of signal S Time vector (0:L-1) *T ; Sum of a 50 Hz sinusoid and a 120 Hz sinusoid 0.7 sin (2*pi*50*t); inuside X d+ 10 randn (size (t)); Sinusoids 5O0000000L plus noise fiqure (1) plot (Fs*t (1:150),x (1:1500)) title('Signal Corrupted with...
LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all close al1: Generate signals for testing the LMS Algorithm 1000 Fs Sampling frequency Sample time 1/Fs 10000: = L Length of signal S Time vector (0:L-1) *T ; Sum of a 50 Hz sinusoid and a 120 Hz sinusoid 0.7 sin (2*pi*50*t); inuside X d+ 10 randn (size (t)); Sinusoids 5O0000000L plus noise fiqure (1) plot (Fs*t (1:150),x (1:1500)) title('Signal Corrupted with...