| > To Continue with Chapter 3
Fourier and the Sum of Sines In this section, we'll try to really the explain the notion of a Fourier expansion, building on the ideas of phasors, partials, and sinusoidal components that we introduced in the previous section. A long time ago, the French scientist and mathematician Jean Baptiste Fourier (1768-1830) proved the amazing mathematical fact that any periodic waveform can be expressed as the sum of an infinite set of sine waves. The frequencies of these sine waves must be integer multiples of some fundamental frequency. In other words, if we have a trumpet sound at middle A (440 Hz), we know by Fouriers theorem that we can express this sound as a summation of sine waves: 440 Hz, 880Hz, 1320Hz, 1760 Hz...., or 1, 2, 3, 4... times the fundamental, each at various amplitudes.. This is rather amazing, since it says that for every periodic waveform (one that, by the way, has pitch), we basically know everything about its partials except their amplitudes.
The partials in the sawtooth wave decrease in energy in proportion to inverse of the harmonic number (1/N). Pulse (or rectangle or square) waveforms have energy over a broad area of the spectrum, but only for a brief period of time. Fourier Series
Since a phasor is essentially a way of representing a sinusoidal function, what this means, mathematically, is that any sound can be represented as a sum of sinusoids. This sum is called a Fourier series. Note that we haven't limited these sounds to periodic ones if we did, we'd have to add that last qualifier about integer multiples of a fundamental frequency! Non-periodic, or aperiodic sounds are just as interesting, maybe even more interesting, than periodic ones, but we have to do some special computer tricks to get a nice "harmonic" series out of them for the purposes of analysis and synthesis. But let's get down to the nitty-gritty. First let's take a look at what happens when we add two sinusoids of the same frequency. Adding a sine and cosine of the same frequency gives a phase-shifted sine of the same frequency:
In fact the amplitude of the sum, C, is given by:
and the phase shift
We can see this with a phasor. Remember that the cosine is just a phase-shifted sine. Since they are moving at the same frequency, they are always "out of sync" (and not N'Sync!) by <<<PICTURE NEEDED: ADDITION OF PHASOR VECTORS AS TRIANGLE And we get another sinusoid of that frequency.
We have a nice shorthand for those possibly infinite sums written above (also called infinite series):
are called the Fourier coefficients of the function f(t). The Fourier coefficient A0 has a special name, it is called the DC term, or the DC offset. It tells you the average value of the function. The Fourier coefficients make up a set of numbers called the "spectrum" of the sound. Now, perhaps when you think of the word spectrum, you might think of colors, like the spectrum of colors of the rainbow. The spectrum tells you how much of each frequency (color) is in the sound.
The values of An and Bn for "small" values of n make up the "low frequency" information, and we call these the low order Fourier coefficients. Similarly, the big values of n index the "high frequency" information. Most sounds tend to be comprised of a lot of low frequency information so the low frequency Fourier coefficients have larger absolute value than the high frequency Fourier coefficients. What this means that it is theoretically possible to take a complex sound, like a person's voice, and decompose it into a bunch of sine waves, each at a different frequency, amplitude and phase. These are called the sinusoidal or spectral components of a sound. To find them we do a Fourier Analysis. Fourier Synthesis is the inverse process, where we take varying amounts of a bunch of sine waves and add them together (play them at the same time) to reconstruct a sound! Sounds a bit fantastic, doesnt it? But it works. This process of analyzing or synthesizing a sound based on its component sine waves is called performing a Fourier Transform on the sound. When the computer does it, it uses a very cool and efficient technique called the Fast Fourier Transform (or FFT) for analysis, and the Inverse FFT (IFFT) for synthesis.
The advantage of representing a sound in terms of its Fourier series is that it allows us to manipulate the frequency content directly. If we want to accentuate the high frequency effects in a sound (make a sound brighter), we could just make the high frequency Fourier coefficients all bigger in amplitude. If we wanted to turn a sawtooth wave into a square wave, we could just set to zero the Fourier coefficients of the even partials.
Installed
Once you have the spectral content of a sound, there is a lot you can do with it, but how do you get it?! That's what the FFT does, and we'll talk about it in the next section.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||