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. For now 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.

A 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 repeat after $2 \pi / \omega$ samples. Such a sum is called a 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 quite 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 exactly 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 (a perfect fifth in Western terminology) is almost exactly seven half-steps, 4:3 (a perfect fourth) is just as near to five half-steps, and the ratios 5:4 and 6:5 (perfect major and minor thirds) are fairly close to intervals of four and three half-steps, respectively.

A Fourier series (with only three terms) is shown in Figure 1.8. The first three graphs are of sinusoids, whose frequencies are in a 1:2:3 ratio. The common period is marked on the horizontal 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.8: 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.9 shows a block diagram for doing this.

Figure 1.9: 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 rang with 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-12-30