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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SOURCE-SIGNAL ANALYSIS 571<br />

component is actually being seen (as opposed to random noise), then all <strong>of</strong><br />

the frequency measures will yield the same value. A high spectral sample rate<br />

is necessary because otherwise the phase shift for a distant band such as 1+2<br />

in the diagram may exceed 180 0<br />

per frame and give a false result. For the<br />

Hamming window, an analysis overlap factor <strong>of</strong> four or more would give a<br />

sufficiently high spectral sample rate.<br />

Another constraint is that frequency resolution must be high enough so<br />

that every component <strong>of</strong> the signal is completely resolved. If the components<br />

are not completely separated, serious errors in frequency and amplitude<br />

measurement are likely. For a Hamming window, this means that frequency<br />

components can be no closer than four times the reciprocal <strong>of</strong> the analysis<br />

record duration. In our analysis example (20-ks/s Fs, 512-sample analysis<br />

record), this evaluates to about 150 Hz. The only reasonable way to improve<br />

frequency resolution is to use longer analysis records, which, <strong>of</strong> course,<br />

degrade time resolution. Alternatively, if all <strong>of</strong> the frequency components are<br />

nearly equal in amplitude, a rectangular window having one-half the<br />

bandwidth <strong>of</strong> the Hamming window can be considered.<br />

Once the frequency <strong>of</strong> a component has been determined, its amplitude<br />

must be calculated to complete the analysis. The simplest method is to note<br />

the band with the greatest response to the component and use its response<br />

amplitude. The error incurred when doing this is small enough (1.5 dB<br />

maximum for a Hamming window) that it can be ignored in many applications.<br />

For greater accuracy, the curved top <strong>of</strong> the equivalent bandpass filter<br />

can be considered and a correction factor derived based on the difference<br />

between the dominant band's center frequency and the actual signal frequency.<br />

One could also rms sum (square root <strong>of</strong> the sum <strong>of</strong> squares) the<br />

responding bands to get a single amplitude measurement for the component.<br />

Of course, all <strong>of</strong> the analysis bands will show some response due to noise or<br />

leakage. However, only those with sufficiently high outputs and reasonable<br />

frequency correlation among adjacent bands should actually be considered as<br />

detecting a valid signal component.<br />

Spectral Shape Anal)'sis<br />

Many natural sounds can be modeled as an oscillator driving a filter as<br />

in Fig. 16-14. The oscillator's waveform is called the excitation function and is<br />

normally rich in harmonics. The filter is called the system function and is<br />

typically rather complex having several resonant peaks and possibly some<br />

notches as well. The spectrum <strong>of</strong> the output sound is the point-by-point<br />

product <strong>of</strong> the excitation function ~pectrum and the amplitude response <strong>of</strong><br />

the filter as in Fig. 16-14B. In musical applications, the frequency <strong>of</strong> the<br />

excitation function is the primary variable, since it determines the pitch <strong>of</strong><br />

the resulting tone. The waveform may also change some, typically acquiring<br />

additional upper harmonic amplitude as its overall amplitude increases. Al-

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

Saved successfully!

Ooh no, something went wrong!