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 295<br />

PARALLEL<br />

INPUTS<br />

INTREQ<br />

GATE<br />

KEYBOARO<br />

TRIGGER<br />

'---------1 COMPUTER<br />

CONTROL<br />

VOLTAGE<br />

OUTPUT<br />

ANALOG<br />

INPUT<br />

ADC<br />

PARALLEL<br />

ADe DATA<br />

Fig. 9--2. Analog keyboard-to-computer interface<br />

termine if the keyboard is requesting by examining the trigger and gate<br />

signals. After reading the ADC output, the request flip-flop can be reset<br />

through an output port bit. If a 6-bit ADC is used, the entire interface only<br />

requires 8 input port bits and 1 output port bit. The interface is equally<br />

applicable to s<strong>of</strong>tware ADC methods. Once the interrupt service routine<br />

determines that the keyboard caused the interrupt, the ADC subroutine can<br />

be entered to read the keyboard voltage.<br />

Polyphonic Keyboards<br />

In spite <strong>of</strong> its vast audio-processing power, most analog synthesizers are<br />

inherently monophonic (one note at a time) instruments. In fact it is usually<br />

the keyboard that causes this limitation. One can always use multiple<br />

keyboards with a voice for each but an increasingly popular musical application<br />

<strong>of</strong> microprocessors is as polyphonic keyboard controllers that allow a<br />

synthesizer player to become a real-time one-man band. Before discussing<br />

such a keyboard controller, let's examine a fairly common analog technique<br />

used to obtain two simultaneous independent notes from a single keyboard.<br />

Two-Note Keyboard<br />

Figure 9-3 shows the idea behind a two-note analog keyboard using a<br />

single-keyboard bus. As mentioned in the single-note interface, when more<br />

than one key is pressed, the bus voltage will correspond to the lowest key<br />

pressed. What is needed is an additional circuit to generate a voltage proportional<br />

to the highest key pressed as well. Examining the siruation with two<br />

keys down, it is seen that all <strong>of</strong> the resistors between the two keys are shorted<br />

out (three resistors in the example). Since the string is driven by a constantcurrent<br />

source, the voltage at the top <strong>of</strong> the string, E2, will decrease by an<br />

amount equal to the voltage that would normally appear across the shorted

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

Saved successfully!

Ooh no, something went wrong!