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.

LOW-COST SYNTHESIS TECHNIQUES 775<br />

Figure 20-8 is a functional block diagram <strong>of</strong> the SID integrated<br />

circuit. The unit basically consists <strong>of</strong> three tone generators, three envelope<br />

generators, a completely programmable multimode filter, and an overall<br />

volume control. A limited degree <strong>of</strong> patching among the elements and an<br />

external audio input is also possible. Standard sawtooth, triangle, and<br />

variable-width pulse waveforms are available from the tone generators as well<br />

as a noise waveform. The latter is produced by the voice's pulse output<br />

driving a shift register random number generator in which 8 <strong>of</strong> the bits are<br />

D-to-A converted to provide a truly random-looking waveform. A full 16 bits<br />

<strong>of</strong> frequency control and 12 bits <strong>of</strong> pulse width control make tuning errors<br />

and any stepping effect completely inaudible. The envelope generators<br />

operate automatically and have independently programmable attack, decay,<br />

and release durations (16 values for each from milliseconds to seconds on a<br />

quasi-exponential scale) and a programmable sustain level. High-pass,<br />

bandpass, and low-pass outputs from the filter can be selected, while 2,048<br />

different cut<strong>of</strong>f frequencies and 16 different "Q" factors can be programmed.<br />

Quite obviously, SID is a miniature polyphonic analog synthesizer on a chip!<br />

As shown in Fig. 20-9, no fewer than 29 8-bit registers control the<br />

SID chip. Twenty-five <strong>of</strong> these perform actual control functions and are writeonly.<br />

Each <strong>of</strong> the three voices is controlled by a set <strong>of</strong> seven registers. Most <strong>of</strong><br />

the bits and fields are self-explanatory, but a few are not. When set, the<br />

RING MOD bit causes,the voice's triangle wave output to be a pseudo-ring<br />

modulation <strong>of</strong> its selected waveform and that <strong>of</strong> the next lower numbered<br />

voice. The modulation is actually an exclusive-or <strong>of</strong> the digital representations<br />

<strong>of</strong> the waveforms but sounds much like analog ring modulation. The<br />

SYNC bit causes this voice's waveform generator to reset when the next lower<br />

voice's waveform completes a cycle. The GATE bit triggers the envelope<br />

generator when it changes from a zero to a one and holds a sustain for as long<br />

as it is set. When it is reset, the release phase <strong>of</strong> the envelope starts.<br />

Four more registers are used to control the filter and output amplifier.<br />

The mode bits are cumulative, thus setting HP and LP gives a band-reject<br />

response. The FILT1, 2, 3, and X bits select whether the corresponding<br />

source goes through the filter first or just passes directly to the output. The<br />

remaining four registers can be read to give the current position <strong>of</strong> two<br />

potentiometers, samples <strong>of</strong>the selected Voice 3 waveform, and samples <strong>of</strong> the<br />

Voice 3 envelope. The latter two functions, along with a s<strong>of</strong>tware copy loop,<br />

allow Voice 3 to modulate other parameters such as the filter. The 30FF filter<br />

control bit disconnects Voice 3 from the audio circuits when th,is mode is<br />

used.<br />

The flexibility, ease <strong>of</strong> control, and relative precision <strong>of</strong> the SID chip,<br />

not to mention the couple <strong>of</strong> million Commodore-64 computers sold, have<br />

inspired some truly remarkable music s<strong>of</strong>tware. Besides the usual score enter!<br />

edit/play type <strong>of</strong> programs, which are generally well done, there are also<br />

interactive sound-effect programs and even "live-performance" keyboard play

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

Saved successfully!

Ooh no, something went wrong!