Digital Sound & Music: Concepts, Applications, & Science, Chapter 2, last updated 6/25/2013
42
x, y, and z are arrays of numbers that can be used as audio samples. pi/3 and pi/6 represent phase
shifts for the 220 Hz and 440 Hz waves, to make our phase response graph more interesting. The
figures can be displayed with the following:
figure;
plot(t,x);
axis([0 0.05 -1.5 1.5]);
title('x');
figure;
plot(t,y);
axis([0 0.05 -1.5 1.5]);
title('y');
figure;
plot(t,z);
axis([0 0.05 -1.5 1.5]);
title('z');
We look at only the first 0.05 seconds of the waveforms in order to see their shape better. You
can see the phase shifts in the figures below. The second and third waves don't start at 0 on the
vertical axis.
Figure 2.42 110 Hz, no phase offset
Figure 2.43 220 Hz, /3 phase offset
Previous Page Next Page