Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Notas y acordes
Carlos Andrs Moreno Gmez
Cd: 10440821861
Oc.3 (Hz)
130.81
138.59
146.83
155.56
164.81
174.61
185.00
196.00
207.65
220.00
233.08
246.94
Oc.4 (Hz)
261.63
277.18
293.66
311.13
329.63
349.23
369.99
392.00
415.30
440.00
446.16
493.88
Oc.5 (Hz)
523.25
554.37
587.33
622.25
659.26
698.46
739.99
783.99
830.61
880.00
932.33
987.77
Notas:
%Nota1
file= 'D:\Escritorio\DSP\Taller5\nota01.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(1)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
axis([0 0.6 -0.1 0.1]);
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 1000 0 60]);
Grafica mostrada:
Grafica mostrada:
%Nota3
file= 'D:\Escritorio\DSP\Taller5\nota03.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(3)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 650 0 20]);
Grafica mostrada:
%Nota4
file= 'D:\Escritorio\DSP\Taller5\nota04.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(4)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 900 0 30]);
Grafica mostrada:
%Nota5
file= 'D:\Escritorio\DSP\Taller5\nota05.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(5)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 650 0 25]);
Grfica Mostrada:
%Nota6
file= 'D:\Escritorio\DSP\Taller5\nota06.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(6)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 800 0 20]);
Grafica mostrada:
%Nota7
file= 'D:\Escritorio\DSP\Taller5\nota07.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(7)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
axis([0 0.6 -0.04 0.01]);
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 600 0 25]);
Graficas mostradas:
Acordes
%Acorde1
file= 'D:\Escritorio\DSP\Taller5\acorde01.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(8)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
axis([0 0.6 -0.04 0.01]);
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 700 0 45]);
Grafica mostrada:
%Acorde2
file= 'D:\Escritorio\DSP\Taller5\acorde02.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(9)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
axis([0 0.4 -0.04 0.01]);
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 800 0 20]);
Grafica mostrada:
%Acorde3
file= 'D:\Escritorio\DSP\Taller5\acorde03.wav';
[Y, Fs]= wavread(file);
%load('d:\docs\sonido.txt'); % lectura de la seal
L = size(Y, 1);
t = 0: 1/Fs:(L-1)/Fs;
X = fft(Y'); % transformada
Xmag = abs(X(1:L/2+1)); % espectro de la seal
k = 0: Fs/L: Fs/2; % rango para la transformada
figure(10)
subplot(211); plot(t,Y); title('Seal temporal (Segundos)');
grid on;
axis([0 0.6 -0.04 0.01]);
subplot(212); plot(k, Xmag); title('DFT (Hertz)');
grid on;
axis([0 850 0 25]);
Grafica mostrada: