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.

DIGITAL HARDWARE 601<br />

waveform changes during a note are not really possible because addressing the<br />

RAM for writing thoroughly scrambles the read data going to the DAC. This<br />

can be overcome somewhat by using a larger RAM, such as a 2K x 8-bit 6116<br />

or 8K 6164, which can hold 8 and 32 waveforms, respectively, at once. All <strong>of</strong><br />

the waveforms can be written ahead <strong>of</strong> time and then instantly selected as<br />

desired without glitching the output. Note that data input and output <strong>of</strong> the<br />

6116 are the same pins, so an 8-bit tri-state buffer and an 8-bit latch will<br />

have to be added to separate them.<br />

Variable and Constant Sample Rate<br />

The oscillator and ROM/RAM waveshaper just discussed is an example<br />

<strong>of</strong>variable sample rate digital synthesis. Earlier, it was strongly suggested that<br />

the sample rate should remain constant in a digital synthesis system. This in<br />

fact is true if the system is handling several unrelated signals at once.<br />

However, a dedicated oscillator is handling only one signal so the rule can be<br />

relaxed somewhat with important advantages.<br />

Using the Fig. 17-10 system as an example, we ignore for a moment<br />

the fact that the count-up rate <strong>of</strong> the most significant 8 bits <strong>of</strong> the accumulator<br />

divider is not exactly constant. Therefore, if the raw DAC output<br />

is examined, it is found to consist <strong>of</strong> exactly 256 steps per cycle <strong>of</strong> the<br />

waveform and each cycle is identical to the previous one. As the division ratio<br />

and hence synthesized wave frequency is changed, the stepped wave is merely<br />

stretched or compressed, but its step-by-step shape remains constant. The<br />

spectrum <strong>of</strong> such a wave is exactly harmonic, including all <strong>of</strong> the alias copies<br />

<strong>of</strong> the intended spectrum. Thus, the alias distortion is purely harmonic distortion<br />

rather than intermodulation distortion and white noise. Furthermore,<br />

and this is the crux <strong>of</strong> the matter, the quantization noise is also harmonic<br />

distortion! This means that perfectly clean sounding tones can be produced<br />

with 8 and even fewer bit DACs.<br />

Since the reader is not really expected to believe the previous paragraph<br />

immediately, let's discuss the meaning <strong>of</strong> harmonic distortion. In audio<br />

equipment, the most prevalent measure <strong>of</strong> quality is harmonic distortion.<br />

Literally, this means that any tone entering the equipment will leave with its<br />

harmonic amplitude relationships altered. Even large amounts (several percent)<br />

<strong>of</strong> such distortion are inaudible provided the distortion is pure, that is,<br />

no other type <strong>of</strong> distortion is present, and that the amplitude alteration is<br />

spread out evenly among the harmonics.<br />

However, the mechanism that causes harmonic distortion in audio<br />

equipment does not meet either criteria when several tones are present simultaneously.<br />

First, intermodulation (IM) distortion is inevitable, which causes<br />

easily heard nonharmonic frequencies to occur. In fact, an amplifier with pure<br />

harmonic distortion would be quite an interesting device indeed. Second, the<br />

harmonic portion <strong>of</strong> the distortion tends to concentrate at high frequencies,

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

Saved successfully!

Ooh no, something went wrong!