Appendix 3

MIDI

The term MIDI stands for Musical Instrument Digital Interface. Do not confuse it with the term midi as applied to hi-fi units, which is a description of their size (midi as opposed to biggi). MIDI is what is known as a serial connection. The data are sent as a series of long and short pulses in groups of eight. Additionally there is a pulse on either side known as ‘start’ and ‘stop’ bits. Just over 30 000 of these pulses can be sent every second – 3000 ‘groups’ known as ‘bytes’ (31.25 kbaud in tech-speak). Figure A3.1 shows the difference between audio and MIDI connections.

image

Figure A3.1 Top, the difference between audio and MIDI connections (white pin indicates not used); Bottom, standard MIDI sockets

The connections are via DIN plugs, which although physically identical to audio DIN plugs are differently wired (Figure A3.1, top).

A typical synthesizer will have three sockets as shown. The ‘IN’ will drive the synthesizer (sound making) circuits. The ‘OUT’ will carry the output of the keyboard. The MIDI system allows up to 16 instruments to be connected together in a ‘daisy chain’ (Figure A3.1, bottom). The ‘THRU’ socket (American spelling of ‘through’) relays the data arriving at the IN socket, unchanged, onto the next instrument. In the process the electrical signal is ‘cleaned up’ and isolated so that a fault on one machine will not necessarily adversely affect the rest of the instruments in the chain (Figure A3.2).

In general, to send each command to an instrument takes 3 bytes of data. There is the possibility that an individual instrument may get sent too much data for it to cope with. Because of the ‘live’ nature of performance, it is vital that it can recover from this very quickly and does not ‘go out of synchronism’ with the data. This is achieved by uniquely marking the bytes of data. The first byte of a group of three is the ‘command’ byte, and has three sections. The bit corresponding to the highest value represented is always ON, and this means that only numbers from 128 to 255 are sent. The 4 bits that correspond to the lowest values (0–15) are allocated to indicate which machine the command is for. Because people are not used to the concept of ‘machine 0’ the channels numbers are named 1–16, although the actual numbers sent are 0–15. The remaining 3 bits are used to define the command.

Engineers notate the numbers represented by these 3 bits combined with the eighth bit, which is always set as 8, 9, A, B, C, D, E, F (hexadecimal). The most important commands are ‘note on’ = 8, and ‘note off’ = 9.

The other two bytes are number values from 0 to 127. The eighth bit of a data byte is always 0 to indicate that the byte is data, not a command. What these data represent will depend on the command, but a typical example is ‘note on’.

In Figure A3.3, the first data byte is a number that represents the note to be played on the standard western music scale where there are 12 notes to an octave (including the black keys). Thus two note numbers that are different by 12 are an octave apart. Other commands can modify the pitch for special effects. The second data byte represents the velocity – how ‘hard’ the key is pressed.

In practice most synthesizers are polyphonic; they can sound more than one note at a time and can respond to more than one MIDI channel at a time. They may also contain drum machines etc. with their own MIDI channel number.

image

Figure A3.2 ‘Daisy-chaining’ MIDI devices

Synthesizers usually send out a data ‘heartbeat’ several times a second. This can distract computers and sound cards when being switched on, causing lockups or crashes. Unless you are sure that your machine is free from this problem, it makes sense to switch off or disconnect your synthesizer when you switch on your computer at the beginning of a session.

image

Figure A3.3 Commands to an instrument

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.5.183