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.

LOW-COST SYNTHESIS TECHNIQUES<br />

771<br />

+12 V<br />

FROM<br />

INTERNAL<br />

PARALLEL<br />

PORT<br />

5<br />

6 87<br />

86<br />

7 85<br />

8 84<br />

9 83<br />

10<br />

II 82<br />

12 81<br />

8~<br />

13<br />

V+<br />

COMP 16<br />

V- "* 1000 pF<br />

3<br />

-12 V.<br />

102°~~'~5"<br />

Sti SPEAKER<br />

0.05 _<br />

}JF -<br />

Fig. 20-6. Micro Technology Unlimited MTU·130 sound port<br />

examined and the sound port toggled whenever the stream changes from 1 to<br />

o or vice-versa. For proper reproduction, the resulting waveform should be<br />

integrated (6 dB/octave low-pass filtered), but the sound is intelligible right<br />

out <strong>of</strong> the built-in speaker. The quality is compatable to that <strong>of</strong> severely<br />

distorted CB radio.<br />

The Ohio Scientific C8P computer was probably the first to include a<br />

D-to-A converter for producing sound. Unfortunately, the designers chose an<br />

exponential rather than a linear DAC, which is very good for playback <strong>of</strong><br />

digitized speech but difficult to program for multipart music synthesis. The<br />

machine also lacked an internal amplifier and speaker. The Micro Technology<br />

Unlimited MTU-130 computer, which was introduced in 1981, used an 8-bit<br />

DAC and had an unusually powerful built-in amplifier driving a 3 X 5 highcompliance<br />

speaker. Figure 20-6 shows the audio circuit used in the<br />

MTU-130 and subsequent models, which requires just two ICs for the DAC,<br />

six-pole filter, and power amplifier. The DAC was driven by an internal 8-bit<br />

parallel output port. Actually, the company manufactured several similar<br />

add-on DAC boards for other 6502-based computers such as the Apple II and<br />

PET well before the MTU-130 came out.<br />

While there was nothing particularly innovative about the audio<br />

circuit, the 6502 music s<strong>of</strong>tware available to drive it and the add-on boards<br />

was quite remarkable. The s<strong>of</strong>tware was based on the routine listed in Fig.<br />

20-2 but with an extension to allow, in effect, an independent envelope for<br />

each harmonic during the course <strong>of</strong> a note. This was accomplished by<br />

replacing the time wasting instructions at CHORD2 with code for<br />

periodically changing the memory page number <strong>of</strong> the waveform table at<br />

VxTAB, thus in effect dynamically switching through a sequence <strong>of</strong> waveform<br />

tables. The actual program used a separate 256-entry table with pointers to

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

Saved successfully!

Ooh no, something went wrong!