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.

DIRECT COMPUTER SYNTHESIS METHODS 115<br />

sound complexity and other factors. Thus, the universal approach is to<br />

compute the samples at whatever rate the program runs and save rhem on a<br />

mass storage device capable <strong>of</strong> holding at least a couple million samples. An<br />

IBM-type computer tape drive is probably the most economically suitable<br />

device. A single $20 reel <strong>of</strong> tape can easily hold in excess <strong>of</strong> 10 million 16-bit<br />

samples, giving an uninterrupted running time <strong>of</strong> over 3 min at 50 ks/s.<br />

Large computer centers can also be expected to have enough disk capacity to<br />

hold a sizable number <strong>of</strong> samples, which <strong>of</strong>fers several advantages over tape.<br />

Even the floppy disks commonly used in microcomputers can be a practical<br />

storage medium in experimental systems, although lower sample rates must<br />

be used and a single diskette can only hold 15-30 sec <strong>of</strong> sound.<br />

After the samples have been computed and stored away, they must be<br />

passed through the DAC at the final intended sample rate. The obvious way<br />

to do this is to read the samples back from the mass storage device and<br />

transfer them at a constant rate to the DAC. For high fidelity, however, the<br />

sample rate must be rock steady; even a few nanoseconds jitter will increase<br />

the background noise level substantially. Thus, the DAC would typically<br />

have its own crystal clock and at least one sample buffer. The computer<br />

servicing the DAC for playback must be able to provide the next sample<br />

before the current one is finished. What this all means is that the computer<br />

must usually be totally dedicated to the task <strong>of</strong> reading samples and sending<br />

them to the DAC. Unfortunately, the operating systems <strong>of</strong> most large computers<br />

are unable to insure uninterrupted execution <strong>of</strong> a single program so<br />

music playback must be done in a stand-alone mode.<br />

Often the expense <strong>of</strong> monopolizing the resources <strong>of</strong> a large computer<br />

cannot be borne so the disk or tape containing the samples is played through<br />

a DAC connected to a minicomputer. In the past, it was fairly common<br />

practice to build a specialized hardware device for reading sample tapes. The<br />

design <strong>of</strong> such a device was complicated by the fact that data on computer<br />

tape is grouped into records <strong>of</strong> perhaps 3,000 samples each with gaps <strong>of</strong><br />

several hundred samples equivalent between. The playback device thus required<br />

a substantial buffer memory to insure the uninterrupted flow <strong>of</strong> data<br />

to the DAC. Of course, mini- or microcomputer installations for direct<br />

synthesis should not experience any <strong>of</strong> these problems.<br />

Sometlmes the tape or disk dnves available on smaller systems may not<br />

be fast enough to provide the desired sample rate. This limitation may be<br />

compensated for by running the DAC at half <strong>of</strong> the desired sample rate and<br />

operating the audio tape recorder at half <strong>of</strong> the intended tape speed. Then<br />

when the audio tape is played at full speed, the desired sample rate will have<br />

been attained. One difficulty with this approach is that the high-frequency<br />

equalization <strong>of</strong> the audio recorder is switched according to tape speed, which<br />

would be expected to alter the high-frequency response somewhat. A more<br />

severe problem is that during recording bass frequencies down to 10 Hz will<br />

be generated but may not record. When played back at double speed, a

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

Saved successfully!

Ooh no, something went wrong!