22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

22 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

As mentioned earlier, any natural sound waveform is really a combination<br />

<strong>of</strong> sine waves originating from vibrating spring-mass systems. However,<br />

in the 17th century, a French mathematician by the name <strong>of</strong>Joseph Fourier<br />

proved mathematically that any waveform, regardless <strong>of</strong> origin) is actually a<br />

mixture <strong>of</strong> sine waves <strong>of</strong> different frequencies, amplitudes, and phases. Furthermore,<br />

he showed that if the waveform repeats steadily, then the frequencies<br />

<strong>of</strong> the component sine waves are restricted to being integer multiples <strong>of</strong> the<br />

repetition frequency <strong>of</strong> the waveform. Thus, if the frequency <strong>of</strong> repetition is<br />

100 Hz, then the component sine waves must have frequencies <strong>of</strong> 100 Hz,<br />

200 Hz, 300 Hz, etc., up to infinity, although any components above 20<br />

kHz will not contribute to the sound, since they are inaudible. Of course,<br />

some <strong>of</strong> them may have zero amplitude, but in general it can be assumed that<br />

all <strong>of</strong> them exist in the audible frequency range.<br />

These component sine waves are called overtones or harmonics, with the<br />

latter term preferred. The component having the same frequency as the<br />

overall waveshape is termed thefundamental frequency, which is also the first<br />

harmonic. The component having a frequency twice the fundamental is<br />

termed the first overtone or second harmonic. The third harmonic has a<br />

frequency three times the fundamental and so forth. Since the frequencies <strong>of</strong><br />

the component waves are fixed, each one can be characterized by giving its<br />

amplitude and its phase angle either as an absolute quantity or w.ith respect<br />

to the fundamental.<br />

Figure 1-6 shows how harmonic sine waves can be combined together<br />

to produce a waveshape that is about as far as one can get from a curvy wave.<br />

Combining two waveforms really means adding them point by point as<br />

shown to get the combined result. A squared-<strong>of</strong>f waveform such as this<br />

actually has an infinite number <strong>of</strong> harmonics with nonzero amplitudes. A<br />

practical synthesis <strong>of</strong> the waveform from harmonic components has to stop<br />

somewhere, <strong>of</strong> course, and leave aU <strong>of</strong> the higher-frequency harmonics with a<br />

zero amplitude.<br />

As can be seen, each additional harmonic gives a closer approximation<br />

to the desired rectangular-shaped wave. With the first 32 harmonics represented,<br />

the apprOXimation is getting quite close with steeply rising sides and<br />

reasonably flat top; however, there is still a significant amount <strong>of</strong> overshoot<br />

and ringing. These imperfections ate mainly due to using the set <strong>of</strong>harmonic<br />

amplitudes designed for an infinite series and stopping the series abruptly at<br />

the 32nd harmonic. A modification <strong>of</strong> the amplitudes taking into account<br />

the fact that no harmonics above 32 are allowed produces a visibly superior<br />

rendition <strong>of</strong> the desired shape.<br />

The significance <strong>of</strong> Fourier's theorem can be realized by noting that all<br />

<strong>of</strong> the acoustically important aspects <strong>of</strong> the shape <strong>of</strong> a waveform can be<br />

specified with a comparatively small number <strong>of</strong> parameters. For example, a<br />

1,OOO~Hz waveshape, no matter how complicated, can be specified by 20<br />

amplitudes and 20 phase angles corresponding to the 20 audible harmonics.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!