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.

566 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

sample <strong>of</strong> the spectrum is represented by a cosine magnitude and a sine<br />

magnitude. We have already seen how this form can be converted into<br />

amplitude and phase form. The amplirude, which is always positive, can be<br />

further co~verted into decibels if desired. Since the human ear has difficulty<br />

in distinguishing amplitude differences much less than 1 dB, the decibel<br />

amplitude data can be quantized to as few as 6 bits without serious degradation.<br />

There may be an inclination to discard the phase data, since they have<br />

little audible effect on the sound. However, the phase data give valuable<br />

information about a sound parameter that is quite important-frequency.<br />

The fundamental and harmonics <strong>of</strong> an arbitrary tone are unlikely to fall<br />

precisely at the center frequencies <strong>of</strong> the analysis bands. The results <strong>of</strong> this<br />

mismatch are tw<strong>of</strong>old. First, since the bandwidth <strong>of</strong> the Hamming window<br />

is four times the frequency spacing <strong>of</strong> the analysis, a given signal component<br />

will show up strongly in as many as four adjacent frequency bands. Second,<br />

the exact frequency <strong>of</strong> the signal is unknown. Even though the analysis seems<br />

imperfect, resynthesis will yield a result essentially equal to the original<br />

signal. It is the phase information that allows accurate reconstruction. We<br />

will see later how phase can be utilized to precisely determine the component<br />

frequencies.<br />

Direct Spectral Modification<br />

Spectral analysis, modification, and resynthesis via FFT comprise the<br />

easiest method <strong>of</strong> implementing a filter with arbitrary amplitude and phase<br />

characteristics. Often, it is the most efficient method as well, since the<br />

computation effort is independent <strong>of</strong> the filter's response shape. Another<br />

advantage is that time-varying filters are handled as easily as fixed ones, a<br />

virtue not shared by the transversal method <strong>of</strong> arbitrary filter implementation.<br />

'Basically, one takes the sequence <strong>of</strong> spectral frames and multiplies the<br />

amplitude <strong>of</strong> each spectral component by the amplitude response <strong>of</strong> the filter<br />

at the corresponding frequency. The resulting sequence <strong>of</strong> spectral frames is<br />

then converted back into sound via FFT synthesis. When the spectral data is<br />

in sine--cosine form, both components must be multiplied by the filter's<br />

amplitude response.<br />

One can also add two or more spectra together. Since the FFT used in<br />

synthesis is a linear process, the result should be equivalent to individual<br />

resynthesis and conventional mixing <strong>of</strong> the results. However, there are two<br />

advantages to mixing in the frequency domain. First, there is no phase<br />

cancellation among the combined spectra if just amplitude spectra are used.<br />

Directly combining sine--cosine spectra, however, gives the typical amount<br />

<strong>of</strong> interference among harmonics <strong>of</strong> the combined tones. The other advantage<br />

<strong>of</strong> spectral combination is that only one resynthesis is necessary, thus reducing<br />

computation effort.

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

Saved successfully!

Ooh no, something went wrong!