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.

ORGAN KEYBOARD INTERFACE 293<br />

that a key is pressed. Typically, these two outputs would go to an envelope<br />

generator, which in turn controls a VCA to shape the amplitude envelope <strong>of</strong><br />

the notes.<br />

Figure 9-1 is a simplified schematic diagram <strong>of</strong> such a keyboard. The<br />

heart <strong>of</strong> the unit is the keyboard itself. Organ keyboards are usually constructed<br />

with a straight gold-plated spring wire attached to each key. When<br />

a key is pressed, this wire contacts a stationary gold-plated rod running the<br />

length <strong>of</strong> the keyboard. This rod is called a "keyboard bus" in organ-builder's<br />

terms. For the synthesizer interface, the spring wire on each key connects to a<br />

tap point on a series string <strong>of</strong> resistors designated R in the diagram. A<br />

current source sends a constant current through rhe string, creating an equal<br />

voltage drop across each resistor. For 100-ohm resistors (a common value)<br />

and 1/12 V/resistor (l2-tone scale and 1 V/octave output) the current would<br />

be 0.83 rnA. Thus, the keyboard bus picks up a definite voltage when a key<br />

is pressed against it. If two or more keys simultaneously contact the bus, the<br />

voltage corresponding to the lowest key pressed appears on rhe bus due to the<br />

action <strong>of</strong> the constant current source. The remainder <strong>of</strong> the interface circuit<br />

essentially looks at the bus voltage and produces proper gate, trigger, and<br />

control voltage outputs.<br />

Gate and Trigger<br />

The gate output is the easiest to generate. If no keys are pressed, R 1 (in<br />

the megohm range) tends to pull the bus down toward - 15 V. D 1, however,<br />

limits the fall to about -0.5 V. When any key is pressed, the bus is<br />

immediately pulled up to a positive voltage dependent on the key pressed.<br />

The gate voltage then may be taken from a comparator referenced to ground,<br />

which will produce a logic one for positive bus voltage and a zero for negative<br />

bus voltage. Cl is a noise filter in the range <strong>of</strong> 200 pF, while Al is a unity<br />

gain buffer, which prevents loading <strong>of</strong> the keyboard bus.<br />

The trigger circuit must provide a short (1 to 10 msec) pulse at the<br />

beginning <strong>of</strong> each key closure. In all cases but one, this occurs when there is a<br />

sudden change in keyboard bus voltage. In the circu.it shown, a transition<br />

detector generates a pulse whenever such a sudden change happens. This<br />

pulse would be the trigger output if it were not for the case that occurs when<br />

a single contacting key is lifted. In this case, the trigger pulse should be<br />

suppressed. To solve the problem, the transition detector output is delayed<br />

slightly and logically anded with the gate signal. The result triggers a<br />

one-shot, which provides the actual trigger output. Thus, when the transition<br />

to no keys is detected it is blocked from producing a trigger. The delay<br />

need only be long enough for the gate comparator to respond.<br />

The control voltage output from the keyboard normally follows the bus<br />

voltage. However, when no keys are pressed, it should reflect the voltage<br />

level <strong>of</strong> the last key released. This is necessary because most envelope<br />

generators do not begin their decay until the gate voltage has gone away. In

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

Saved successfully!

Ooh no, something went wrong!