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.

298 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

A Microprocessor-Based Keyboard Interface<br />

Not only can digital logic solve the polyphonic keyboard problem and<br />

thereby effect an efficient, completely general interface to a microcomputer,<br />

but also a dedicated microprocessor can replace the logic. In this section, a<br />

five-octave velocity-sensitive keyboard interface will be described, which uses a<br />

6502 microprocessor to perform all <strong>of</strong> the needed logic functions. Using a<br />

dedicated microprocessor results in an interface that uses a minimum <strong>of</strong><br />

parts, is easy to build, is flexible in that the operational characteristics may<br />

be altered by reprogramming, and is actually inexpensive.<br />

Velocity Sensing<br />

Befote delving into the actual circuitry and programming, let's develop<br />

a set <strong>of</strong>specifications for the unit. First, what is velocity sensing and how is it<br />

implemented? Basically, velocity sensing is a very inexpensive way to obtain<br />

additional information about keystrokes beyond simple duration. The keys<br />

on a piano, for example, are velocity sensitive. The actual speed <strong>of</strong> key travel<br />

downward at the exact instant <strong>of</strong> key "bottoming" solely determines the force<br />

with which the hammer strikes the string. In fact, the hammer "coasts" a<br />

finite distance from the point <strong>of</strong> key bottoming to actual contact with the<br />

string. Thus, variations in velocity or pressure while the key is going down do<br />

not affect the sound! Unfortunately, a velocity-sensitive organ keyboard will<br />

not feel at all like a piano keyboard because the inertia <strong>of</strong> the hammer is<br />

absent, but the same kind <strong>of</strong> information will be available. Note that since<br />

we are using a synthesizer the velocity information need not necessarily<br />

control the amplitude <strong>of</strong> the note. It could just as well control timbre,<br />

vibrato, or the envelope.<br />

The mechanical modification necessary to allow velocity sensing on an<br />

organ keyboard is really quite simple. All that is required is a second<br />

keyboard bus spaced a fixed distance above the standard bus and positioned<br />

such that the keys' spring wires make contact with it when in the up position.<br />

Now, when a key travels down, the wire will first break contact with the<br />

upper bus after a short distance, float freely between the buses for the<br />

majority <strong>of</strong> the travel, and then finally contact the lower bus just before the<br />

key bottoms. The average downward velocity <strong>of</strong> the wire and thus the key<br />

may be determined by measuring the time interval between breaking the<br />

upper contact and making the lower one! If desired, the speed <strong>of</strong> release at<br />

the end <strong>of</strong> a note may also be determined, which might indeed be used to<br />

vary envelope decay. For monophonic keyboards, it is relatively easy to<br />

design analog timing circuits that will produce a control voltage output<br />

proportional to velocity. For polyphonic keyboards, however, only digital<br />

scanning logic can cope with the problem.<br />

The actual characteristics <strong>of</strong> standard two-bus commercial keyboards<br />

are not quite ideal but can be lived with. Contact resistance, for example, is

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

Saved successfully!

Ooh no, something went wrong!