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.

438 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

~ • • /\ ,1"1., /.... .~~ ", r<br />

~ 0 I-':"' ...:;---:""";":"---:-";-f .• -':--+Co.-"~---,;._-;-, --'---."' ....'.'--~+...;~...--, ......:i-',/ .....-'--'c., ...i'--':-+-~...+-J-<br />

§;: ....i 'w' \./ _ \./ :<br />

,<br />

:\<br />

I/'i'" ACTUAL WAVEFORM<br />

r rI' HARMONICS<br />

TIME<br />

.; END OF<br />

RECORD<br />

5.31 CYCLES<br />

TRANSFORM "HARMONICS"<br />

FREOUENCY<br />

Fig. 13-10. Discrete Fourier transform <strong>of</strong> 5.31 cycles <strong>of</strong> a waveform containing<br />

equal proportions <strong>of</strong> fundamental, second, and third harmonics<br />

the synthesized waveform is just as unlikely to span the record as in the<br />

analysis case. The other problem is that if the spectrum changes significantly<br />

from one synthesized record to the next, there is likely to be a discontinuity<br />

between the two records when they are spliced together. These synthesis<br />

problems may be overcome by record overlapping and time-variable interpolation<br />

between the overlapping records.<br />

The frequency domain data produced and used by the discrete Fourier<br />

transform bear a very specific relationship to the corresponding sample record.<br />

In particular, the number <strong>of</strong> harmonics (including the zeroth or dc<br />

component) in the frequency domain representation is exactly one-half the<br />

number <strong>of</strong> samples in the time domain record plus one. It is easily seen that<br />

any more than this would not make any sense. For example, let's assume a<br />

record size <strong>of</strong> 200 samples taken at a sample rate <strong>of</strong> 10 ks/s. The record<br />

duration, therefore, is 20 msec, which is also the period <strong>of</strong> the assumed<br />

periodic waveform. A 20-msec period is a 50-Hz frequency for the assumed<br />

wave, so harmonics would fall at 50 Hz, 100 Hz, 150 Hz, etc. It is easy to<br />

determine, then, that there are 100 harmonics at or below one-half the<br />

sample rate and, when the dc component is included, the total becomes 10 1,<br />

which is one-half the record size plus one. This also shows that the frequency<br />

resolution <strong>of</strong> the analysis is 50 Hz or simply the reciprocal <strong>of</strong> the record<br />

duration.<br />

Each harmonic in turn consists <strong>of</strong> two components. Although harmonics<br />

have been characterized by amplitude and phase so far, the Fourier

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

Saved successfully!

Ooh no, something went wrong!