Skip to content

Commit 637443e

Browse files
committed
2 parents 5079774 + 4932ed5 commit 637443e

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

README.md

+11-26
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,9 @@ audiowrite('sides_signal.wav',sides_signal,sampling_frequency);
150150
% Display the original, center, and sides signals in seconds
151151
xtick_step = 1;
152152
figure
153-
subplot(3,1,1)
154-
zaf.sigplot(audio_signal, sampling_frequency, xtick_step)
155-
ylim([-1,1]), title("Original signal")
156-
subplot(3,1,2)
157-
zaf.sigplot(center_signal, sampling_frequency, xtick_step)
158-
ylim([-1,1]), title("Center signal")
159-
subplot(3,1,3)
160-
zaf.sigplot(sides_signal, sampling_frequency, xtick_step)
161-
ylim([-1,1]), title("Sides signal")
153+
subplot(3,1,1), zaf.sigplot(audio_signal, sampling_frequency, xtick_step), ylim([-1,1]), title("Original signal")
154+
subplot(3,1,2), zaf.sigplot(center_signal, sampling_frequency, xtick_step), ylim([-1,1]), title("Center signal")
155+
subplot(3,1,3), zaf.sigplot(sides_signal, sampling_frequency, xtick_step), ylim([-1,1]), title("Sides signal")
162156
```
163157

164158
<img src="images/istft.png" width="1000">
@@ -296,12 +290,9 @@ time_resolution = sampling_frequency*size(audio_mfcc,2)/length(audio_signal);
296290
xtick_step = 1;
297291
number_samples = length(audio_signal);
298292
figure
299-
subplot(3,1,1)
300-
zaf.mfccshow(audio_mfcc,number_samples,sampling_frequency,xtick_step), title('MFCCs')
301-
subplot(3,1,2)
302-
zaf.mfccshow(audio_dmfcc,number_samples,sampling_frequency,xtick_step), title('Delta MFCCs')
303-
subplot(3,1,3)
304-
zaf.mfccshow(audio_ddmfcc,number_samples,sampling_frequency,xtick_step), title('Delta-delta MFCCs')
293+
subplot(3,1,1), zaf.mfccshow(audio_mfcc,number_samples,sampling_frequency,xtick_step), title('MFCCs')
294+
subplot(3,1,2), zaf.mfccshow(audio_dmfcc,number_samples,sampling_frequency,xtick_step), title('Delta MFCCs')
295+
subplot(3,1,3), zaf.mfccshow(audio_ddmfcc,number_samples,sampling_frequency,xtick_step), title('Delta-delta MFCCs')
305296
```
306297

307298
<img src="images/mfcc.png" width="1000">
@@ -371,7 +362,7 @@ Output:
371362
[audio_signal,sampling_frequency] = audioread('audio_file.wav');
372363
audio_signal = mean(audio_signal,2);
373364
374-
% Compute the CQT kernel using some parameters
365+
% Compute the CQT kernel
375366
octave_resolution = 24;
376367
minimum_frequency = 55;
377368
maximum_frequency = 3520;
@@ -415,7 +406,7 @@ Output:
415406
[audio_signal,sampling_frequency] = audioread('audio_file.wav');
416407
audio_signal = mean(audio_signal,2);
417408
418-
% Compute the CQT kernel using some parameters
409+
% Compute the CQT kernel
419410
octave_resolution = 24;
420411
minimum_frequency = 55;
421412
maximum_frequency = 3520;
@@ -627,15 +618,9 @@ y_max = max(abs(audio_differences));
627618
% Display the original and resynthesized signals, and their differences in seconds
628619
xtick_step = 1;
629620
figure
630-
subplot(3,1,1)
631-
zaf.sigplot(audio_signal,sampling_frequency,xtick_step)
632-
ylim([-1,1]), title('Original signal')
633-
subplot(3,1,2)
634-
zaf.sigplot(audio_signal2,sampling_frequency,xtick_step)
635-
ylim([-1,1]), title('Resyntesized signal')
636-
subplot(3,1,3)
637-
zaf.sigplot(audio_differences,sampling_frequency,xtick_step)
638-
ylim([-y_max,y_max]), title('Original - resyntesized signal')
621+
subplot(3,1,1), zaf.sigplot(audio_signal,sampling_frequency,xtick_step), ylim([-1,1]), title('Original signal')
622+
subplot(3,1,2), zaf.sigplot(audio_signal2,sampling_frequency,xtick_step), ylim([-1,1]), title('Resyntesized signal')
623+
subplot(3,1,3), zaf.sigplot(audio_differences,sampling_frequency,xtick_step), ylim([-y_max,y_max]), title('Original - resyntesized signal')
639624
```
640625

641626
<img src="images/imdct.png" width="1000">

0 commit comments

Comments
 (0)