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.

120 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

modification by means <strong>of</strong> filtering can be accomplished with digital jilters,<br />

Actually, a digital filter is nothing more than an equation that specifies the<br />

Nth output sample as a function <strong>of</strong> several previous input samples and some<br />

filter response parameters. A special case is the recursive digital filter, which<br />

only uses the previous output sample and the current input sample along<br />

with response parameters to produce an output sample. All <strong>of</strong> the common<br />

filter amplitude response shapes such as low-pass, bandpass, and high-pass<br />

are easily done with recursive digital filters. Arbitrary response shapes can<br />

also be done in a straightforward manner with nonrecursive digital filters.<br />

Calculation time is longer with these, since several up to several hundred<br />

previous input samples are evaluated to produce the output but the response<br />

shapes produced would be very difficult to duplicate with recursive digital or<br />

analog filters. As with all other direct synthesis techniques, there is no real<br />

limit to the number <strong>of</strong> digital filters that may be in use simultaneously.<br />

Usually the programming is done with a small group <strong>of</strong> routines for the<br />

different general types <strong>of</strong> filters and then the characteristics <strong>of</strong> specific filters<br />

in use at the time are simply numbers stored in a table in memory.<br />

Reverberation and chorus effects previously described are also easily<br />

done. One <strong>of</strong> the simplest operations in a direct synthesis system is delay. All<br />

that is required for delay is a memory buffer and a simple program for storing<br />

current samples into and withdrawing delayed samples from the buffer. Very<br />

little computation time is required for a delay function, although the buffer<br />

memory could become substantial for long or multiple delays. Delay times<br />

are easily varied in whole sample increments and interpolation may be used<br />

for even finer increments. Thus, all methods for reverberation and chorus<br />

may be applied directly and even refined considerably. If time is no object,<br />

the characteristics <strong>of</strong> a particular concert hall may be duplicated using only<br />

the waveform <strong>of</strong> a spark discharge (or other repeatable sharp sound) recorded<br />

in the actual hall for input.<br />

The tape-splicing methods covered earlier can be done also and with<br />

great efficiency. Generally, the computer system should have a large disk<br />

storage facility for quick access to a library <strong>of</strong> recorded natural and synthetic<br />

sounds. The largest part <strong>of</strong> such a sound-editing system is simply the bookkeeping<br />

needed to keep track <strong>of</strong>sound fragments in various stages <strong>of</strong> completion.<br />

The actual cutting and splicing operations could be done at a graphic<br />

display console showing actual waveforms or spectra with a light pen to<br />

specify the cut or splice points.<br />

One modification technique that does not always work well when done<br />

digitally is nonlinear waveshaping. Since clipping and other waveshape distortions<br />

are likely to generate strong high-frequency harmonics, alias distortion<br />

can become a problem. If necessary, the distortion operation can be done<br />

at a much higher sample rate at which the alias distortion is less <strong>of</strong> a<br />

problem, then digitally low-pass filtered to less than half <strong>of</strong> the system<br />

sample rate, and finally resampled. Fortunately, such gross distortion techniques<br />

are seldom needed when more refined techniques are available.

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

Saved successfully!

Ooh no, something went wrong!