next up previous contents index
Next: About the Software Examples Up: Sinusoids, amplitude and frequency Previous: Superposing Signals   Contents   Index


Periodic Signals

A signal $x[n]$ is said to repeat at a period $\tau$ if

\begin{displaymath}
x[n + \tau] = x[n]
\end{displaymath}

for all $n$. Such a signal would also repeat at periods $2 \tau$ and so on; the smallest $\tau$ if any at which a signal repeats is called the signal's period. In discussing periods of digital audio signals, we quickly run into the difficulty of describing signals whose ``period" isn't an integer, so that the equation above doesn't make sense. Throughout this section, we'll effectively ignore this difficulty by supposing that the signal $x[n]$ may somehow be interpolated between the samples so that it's well defined whether $n$ is an integer or not.

The Sinusoid has a period (in samples) of $2 \pi / \omega$ where $\omega $ is the angular frequency. More generally, any sum of Sinusoids with frequencies $2 \pi k/ \omega$, for integers $k$, will have this period. Such a sum is called a Fourier Series:

Fourier Series

\begin{displaymath}
x[n] = {a_0} +
{a_1} \cos \left ( \omega n + {\phi_1} \rig...
... + \cdots +
{a_p} \cos \left ( p \omega n + {\phi_p} \right )
\end{displaymath}

Moreover, if we make certain technical assumptions (in effect that signals only contain frequencies up to a finite bound), we can represent any periodic signal as such a sum. This is the discrete-time variant of Fourier analysis which will reappear in chapter 9.

The angular frequencies of the Sinusoids above are all integer multiples of $\omega $. They are called the harmonics of $\omega $, which in turn is called the fundamental. In terms of pitch, the harmonics $\omega, 2 \omega, \ldots$ are at intervals of 0, 1200, 1902, 2400, 2786, 3102, 3369, 3600, ..., cents above the fundamental; this sequence of pitches is sometimes called the harmonic series. The first six of these are all oddly close to multiples of 100; in other words, the first six harmonics of a pitch in the Western scale land close to (but not always on) other pitches of the same scale; the third and sixth miss only by 2 cents and the fifth misses by 14.

Put another way, the frequency ratio 3:2 is almost exactly seven half-tones, 4:3 is just as near to five half tones, and the ratios 5:4 and 6:5 are fairly close to intervals of four and three half-tones, respectively. These four intervals are called the fifth, the fourth, and the major and minor thirds--again for historical reasons which don't concern us here.

A Fourier series (with only three terms) is shown in Figure 1.7. The first three graphs are those of sinusoids, whose frequencies are in a 1:2:3 ratio. The common period is marked on the horixontal axis. Each sinusoid has a different amplitude and initial phase. The sum of the three, at bottom, is not a sinusoid, but it still maintains the periodicity shared by the three component sinusoids.

Figure 1.7: A Fourier series, showing three sinusoids and their sum. The three component sinusoids have frequencies in the ratio 1:2:3.
\begin{figure}\psfig{file=figs/fig01.08.ps}\end{figure}

Leaving questions of phase aside, we can use a bank of sinusoidal oscillators to synthesize periodic tones, or even to morph smoothly through a succession of periodic tones, by specifying the fundamental frequency and the (possibly time-varying) amplitudes of the partials. Figure 1.8 shows a block diagram for doing this.

Figure 1.8: Using many oscillators to synthesize a waveform with desired harmonic amplitudes.
\begin{figure}\psfig{file=figs/fig01.09.ps}\end{figure}

This is an example of additive synthesis; more generally the term can be applied to networks in which the frequencies of the oscillators are independently controllable. The early days of computer music were full of the sound of additive synthesis.


next up previous contents index
Next: About the Software Examples Up: Sinusoids, amplitude and frequency Previous: Superposing Signals   Contents   Index
Miller Puckette 2006-03-03