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.

DIGITAL TONE GENERATION TECHNIQUES<br />

423<br />

16-BIT ANGLE WORD (X I<br />

Is, !!!, I ! ! , I , ! ,<br />

~'---------v----\<br />

QUADRANT<br />

SELECT<br />

TABLE<br />

LOOKUP<br />

ARGUMENT<br />

(XI)<br />

FIRST DERIVATIVE<br />

TABULATED FUNCTION VALUE<br />

L......J---'---'---'--'---'-...L-L-L...J-'----'---'--'---L....J = F(XI)~<br />

ADD<br />

I<br />

F(X)<br />

Fig. 13-2. Linear interpolation in a sine table<br />

16-BIT<br />

RESULT<br />

improved noise level are worth the extra computation time, particularly if<br />

hardware multiply is not available.<br />

Alias Distortion<br />

So far everything sounds great; all <strong>of</strong> the normal analog synthesizer<br />

waveforms are available in digital form with adequate frequency resolution<br />

and are just waiting to be processed further. There exists, however, one<br />

problem that can only be minimized and that is alias distortion from the<br />

upper harmonics <strong>of</strong> most <strong>of</strong> these waveforms. When the algorithms just<br />

described are used to generate samples on a waveform, the samples generated<br />

are exactly the same as would have come from an ADC sampling the equivalent<br />

analog waveform with no low-pass jilter! Thus, one would expect the<br />

higher harmonics to fold back into the audio range and create distortion.<br />

Before deciding what to do about the problem, its severity should be<br />

determined. As a "best-case" example, let us assume a sample rate <strong>of</strong> 50 ksls,<br />

the use <strong>of</strong> a sharp I5-kHz low-pass filter in the output DAC, and a I-kHz<br />

sawtooth wave. The idea is to add up the power in all <strong>of</strong> the unaliased<br />

harmonics in the I5-kHz range and compare this with the sum <strong>of</strong> the aliased<br />

harmonics that are in the 15-kHz range.<br />

The power spectrum <strong>of</strong> a sawtooth wave is well known and is<br />

Pn = Pdn 2 , where Pn is the power in the nth harmonic relative to the

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

Saved successfully!

Ooh no, something went wrong!