4 MIDI Overview
MIDI is the acronym for Musical Instrument Digital Interface. It is actually a protocol for “translating” the parameters of acoustic music into a format that computers and music hardware can comprehend. While musicians could refer to a piano playing a quarter note middle C at mezzo-forte, computer software would need to understand this as a series of numbers. MIDI takes acoustic aspects of music and converts them into a numeric “standard”. For example, a piano timbre = 1, a middle C is 60, mezzoforte a 64.
MIDI was introduced in 1983. It was developed in cooperation between the major music industry electronic instrument manufacturers including Roland, Yamaha, Korg and others. The MIDI protocol allows electronic devices (usually synthesizers, but also computers, light show controllers, multi-track recorders, etc.) to interact and work in synchronization with other MIDI compatible devices. Using a master controller device such as a keyboard, one can play or trigger sounds from other electronic devices remotely. The characteristics are as follows:
- Duration = time of NOTE OFF – time of NOTE ON (if NOTE ON @ 0.00 and NOTE OFF @ 1.00, duration was one second)
- Timbre = PATCH [1 to 128]
- Pitch = MIDI Note Number [1 to 128] C-2 to G8
- Part or Staff = CHANNEL – MIDI “broadcasts” using 16 channels, with Channel 10 = drums.
- MIDI also has “running status” meaning anything stays until it changes (if you tell a midi keyboard part to use the “Vibraphone” patch, it stays vibes until a different patch is sent.)
- MIDI is NOT audio – the “sound” comes from a MIDI device of some kind (including the computer’s sound card).
A MIDI file doesn’t contain actual audio data, but rather contains commands that let MIDI-capable synthesizers re-create a specific musical passage. The MIDI protocol has been used for years as a way for electronic musical instruments (like digital keyboards and sequencers) to communicate with each other.
An important distinction of MIDI files is that they have NO inherent sound – they require an external device or an internal “sound font” for any music to be heard. This is similar to a piece of sheet music – the page contains music notation which on their own have no sound. A musician is required to ‘convert’ the music notation to actual audio sound.
Computers typically feature the ability to interpret MIDI files into music, built into the operating system. Since they don’t actually contain the music itself, but rather the commands used to re-create music, MIDI files are a lot smaller than audio files like MP3s, WMAs, or WAVs. MIDI files usually appear with the “.MID” filename extension.
The idea of a sound font parallels that of a word processing font – the font is able to represent a particular instrumental or vocal sound – a ‘timbre’. One aspect of MIDI is the idea of ‘patches’ – any device that fully supports General MIDI is based on a standard listing of 128 sounds (patches).
General MIDI Patches [timbres]
Piano | Chromatic Percussion | Organ | Guitar |
1 Acoustic Grand 2 Bright Acoustic 3 Electric Grand 4 Honky-Tonk 5 Electric Piano 1 6 Electric Piano 2 7 Harpsichord 8 Clavinet |
9 Celesta 10 Glockenspiel 11 Music Box 12 Vibraphone 13 Marimba 14 Xylophone 15 Tubular Bells 16 Dulcimer |
17 Drawbar Organ 18 Percussive Organ 19 Rock Organ 20 Church Organ 21 Reed Organ 22 Accordion 23 Harmonica 24 Tango Accordion |
25 Nylon String Guitar 26 Steel String Guitar 27 Electric Jazz Guitar 28 Electric Clean Guitar 29 Electric Muted Guitar 30 Overdriven Guitar 31 Distortion Guitar 32 Guitar Harmonics |
Bass | Solo Strings | Ensemble | Brass |
33 Acoustic Bass 34 Electric Bass(finger) 35 Electric Bass(pick) 36 Fretless Bass 37 Slap Bass 1 38 Slap Bass 2 39 Synth Bass 1 40 Synth Bass 2 |
41 Violin 42 Viola 43 Cello 44 Contrabass 45 Tremolo Strings 46 Pizzicato Strings| 47 Orchestral Strings 48 Timpani |
49 String Ensemble 1 50 String Ensemble 2 51 SynthStrings 1 52 SynthStrings 2 53 Choir Aahs 54 Voice Oohs 55 Synth Voice 56 Orchestra Hit |
57 Trumpet 58 Trombone 59 Tuba 60 Muted Trumpet 61 French Horn 62 Brass Section 63 SynthBrass 1 64 SynthBrass 2 |
Reed | Pipe | Synth Lead | Synth Pad |
65 Soprano Sax 66 Alto Sax 67 Tenor Sax 68 Baritone Sax 69 Oboe 70 English Horn 71 Bassoon 72 Clarinet |
73 Piccolo 74 Flute 75 Recorder 76 Pan Flute 77 Blown Bottle 78 Skakuhachi 79 Whistle 80 Ocarina |
81 Lead 1 (square) 82 Lead 2 (sawtooth) 83 Lead 3 (calliope) 84 Lead 4 (chiff) 85 Lead 5 (charang) 86 Lead 6 (voice) 87 Lead 7 (fifths) 88 Lead 8 (bass+lead) |
89 Pad 1 (new age) 90 Pad 2 (warm) 91 Pad 3 (polysynth) 92 Pad 4 (choir) 93 Pad 5 (bowed) 94 Pad 6 (metallic) 95 Pad 7 (halo) 96 Pad 8 (sweep) |
Synth Effects | Ethnic | Percussive | Sound Effects |
97 FX 1 (rain) 98 FX 2 (soundtrack) 99 FX 3 (crystal) 100 FX 4 (atmosphere) 101 FX 5 (brightness) 102 FX 6 (goblins) 103 FX 7 (echoes) 104 FX 8 (sci-fi) |
105 Sitar 106 Banjo 107 Shamisen 108 Koto 109 Kalimba 110 Bagpipe 111 Fiddle 112 Shanai |
113 Tinkle Bell 114 Agogo 115 Steel Drums 116 Woodblock 117 Taiko Drum 118 Melodic Tom 119 Synth Drum 120 Reverse Cymbal |
121 Guitar Fret Noise 122 Breath Noise 123 Seashore 124 Bird Tweet 125 Telephone Ring 126 Helicopter 127 Applause 128 Gunshot |
General MIDI (GM) Drum Sounds
Assigned to each MIDI note (channel 10) – NOTE: 36 = C1 [middle C = C3]
Note# Drum Sound
35 Acoustic Bass Drum 36 Bass Drum 1 37 Side Stick 38 Acoustic Snare 39 Hand Clap 40 Electric Snare 41 Low Floor Tom 42 Closed Hi-Hat 43 High Floor Tom 44 Pedal Hi-Hat 45 Low Tom 46 Open Hi-Hat 47 Low-Mid Tom 48 Hi-Mid Tom 49 Crash Cymbal 1 50 High Tom 51 Ride Cymbal 1 52 Chinese Cymbal 53 Ride Bell 54 Tambourine 55 Splash Cymbal 56 Cowbell 57 Crash Cymbal 2 58 Vibraslap |
59 Ride Cymbal 2 60 Hi Bongo 61 Low Bongo 62 Mute Hi Conga 63 Open Hi Conga 64 Low Conga 65 High Timbale 66 Low Timbale 67 High Agogo 68 Low Agogo 69 Cabasa 70 Maracas 71 Short Whistle 72 Long Whistle 73 Short Guiro 74 Long Guiro 75 Claves 76 Hi Wood Block 77 Low Wood Block 78 Mute Cuica 79 Open Cuica 80 Mute Triangle 81 Open Triangle |
Excerpts from http://www.midi.org/aboutmidi/intromidi.pdf
Electronic musical instruments offer an incredible array of sounds to professional and amateur musicians. They place at a musician’s fingertips everything from traditional, real-world sounds to noises that have never been heard before.
They come in all shapes and sizes, too, from solid, physical instruments such as keyboards, beat boxes, and electronic drum kits, to computer-based “virtual” instruments, or “soft synths.”
All of these devices rely on something called “MIDI.” You really can’t get too far with an electronic instrument without bumping into MIDI. This is actually a good thing, though, since MIDI allows you to do all sorts of exciting musical things.
Of course, it helps to know what MIDI is—that’s what this booklet’s for. Once you understand the basics, you can consult the documentation for your device to learn more about how it uses MIDI.
Understanding MIDI
What MIDI Isn’t
Yes, it’s an odd place to start, but one of the things that confuses people new to MIDI is that they assume MIDI is some type of sound, or audio, that travels through MIDI cables. It’s not.
What MIDI Is
MIDI, which stands for “Musical Instrument Digital Interface,” is a system that allows electronic musical instruments and computers to send instructions to each other. It sounds simple, but MIDI provides some profound creative opportunities.
Why MIDI Matters
Here are just some of the things MIDI makes possible:
- You can use a MIDI instrument with which you’re comfortable to play the sounds belonging to any other MIDI device, including soft synths.
- Create rich musical textures by layering sounds from multiple MIDI devices, or assign different sounds to play in different pitch ranges.
- When you play a MIDI instrument, it produces data that can be captured by a MIDI “sequencer.” When the sequencer plays back the data, your original performance is recreated. Sequencers aren’t just MIDI recorders, though—they let you fix mistakes, change the pitches of your notes, fix their timing, the way they play, the sounds they use, and more. In addition, most sequencers can capture multiple performances on separate“tracks,” allowing you to build up full musical arrangements, one track at a time.
- The General MIDI sound set allows you to instantly play back pre- recorded music on many MIDI instruments, or on a computer.
- One MIDI device can control another, letting you use the most convenient tool for any job. Edit MIDI instrument sounds on your computer, operate an audio recorder from a MIDI beat box, and on and on.
What MIDI Does
When one MIDI device communicates with another, it’s all about instructions: It’s just one MIDI device telling another one what to do. Here’s how playing a note—the most common MIDI activity—happens.
Suppose you’ve got a MIDI keyboard connected to a laptop via a MIDI interface and you want to play a Middle C…
When you hold down the Middle C on the keyboard, the keyboard sends out a Middle C “key down” MIDI message to the laptop. The laptop says to itself, “Ah, right, Middle C,” and receives a “note on – Middle C”
When you let go of Middle C, the keyboard sends a Middle C “note off” message to the laptop, and the note stops playing.
Note-on and note-off messages are just the beginning, though. Most MIDI controllers can also sense how hard you play a note, transmitting a MIDI “velocity” value to the receiving device so the volume or brightness of its note responds to your touch.
And, of course, you’ll usually play more than one note at a time.
We’ll discuss other types of MIDI messages a bit later, and explain how they’re put together.
A World of MIDI Controllers
A MIDI device that controls another is referred to as a MIDI “controller.” Though most people think of MIDI as being just for keyboard players, a wide range of MIDI controllers and control surfaces make it easy for all sorts of players and engineers to harness the power of MIDI.
Let’s talk about some of the available controllers just to give you some idea of the possibilities.
Keyboard Controllers
This is the most popular type of controller due to its familiarity (mimics a piano) and ease of use in a variety of scenarios. Keyboards can be divided into several categories:
- controllers – ONLY provides MIDI output and thus requires some kind of digital device to actually create sound. This is similar to a bluetooth QWERTY keyboard – without a computer, such a keyboard is fairly useless! One quick way to tell that a device is a keyboard controller is the lack of either speakers or headphone jack (nothing in the device can actually generate sound)
- synthesizers – these are instruments that have a ‘tone generator’ in them, as well as audio output (headphone jacks, line out, and/or speakers). Synthesizers are fully functional MIDI controllers BUT they have the added benefit of being able to produce hundreds, and sometimes thousands, of sounds (timbres)
- digital keyboard – these are instruments that have the sense of ‘weight’ in the piano keys in order to provide a feel of playing more like a piano. Digital keyboards tends to have fewer timbres since they are trying to mimic, as close as possible, an acoustic piano.
Guitar Controllers
A steel-stringed guitar with a MIDI pickup or a dedicated MIDI guitar synthesizer can allow the performer to not only create MIDI content, but use standard guitar techniques to make that content as expressive as possible.
Drum Controllers
Electronic drum sets offer a totally natural playing experience along with incredible sounds, all without the hassles of a traditional kit. You can practice on headphones all night if you want, or record drum tracks straight into a MIDI sequencer from a drum kit’s pad and cymbal controllers. There are smaller drum controllers you can play with sticks, or even with your hands. You can also control MIDI devices from traditional acoustic drums by installing MIDI drum triggers.
Other Controllers
There are a number of other instruments and devices that use MIDI. There are specially made MIDI wind controllers, mallet controllers, and even MIDI accordions. Since MIDI was primarily designed for keyboard players, these devices are often referred to as “alternate controllers”.
Another category of alternate MIDI controllers are those that don’t mirror traditional musical instruments. These are simple switches and controls that can be used in items as various as clothing (gloves, suites, mats), to objects that can be hit, strummed, blown, or even controlled by a light beam.
MIDI devices can not only be used to trigger note information, but they can also send control information to other devices, such as lighting controllers.
The Power of MIDI Sequencers
A MIDI sequencer can provide a tremendous amount of fun for the amateur musician, and it’s a powerful tool in the hands of a professional. In fact, sequencers play an important role in many modern commercial recordings.
During recording, the sequencer captures and plays back live MIDI performances. Performances can also be constructed slowly, note-by-note using a variety of methods include “step record” and onscreen pencil tools that allows the ‘drawing’ of notes.
A sequencer may let you view notes in an variety of ways, from a list of MIDI events, to a piano-roll-type view, to onscreen notation. (Many sequencers also allow you to print the notation you see onscreen.)
The capturing of MIDI notes is just the beginning, since a sequencer allows you to do all sorts of things to perfect your music. Some of the most commonly used sequencer tools are:
- quantization—that corrects the timing of notes.
- transposition—that moves notes to new musical keys.
- scaling—that changes the feel of recorded musical phrases by adjusting recorded velocity values, note lengths, and more.
Some instruments contain a built-in sequencer, giving you sounds and sequencing in a single “workstation.” There are also numerous computer- based sequencing programs and standalone hardware sequencers.
Some sequencers can record audio in addition to MIDI, allowing you to work on all of the elements in a song at the same time.
Standard MIDI Files, or “SMFs”
Whether a sequencer’s in a workstation, on a computer, or a standalone device, each song’s data has to be stored as a file somewhere, somehow. Each manufacturer has their own type of sequencer file that works for their products’ features, resulting in files that only their sequencers can play. This presents a roadblock for musicians who want to collaborate or otherwise share sequencer files.
The solution is the Standard MIDI File, or “SMF,” format. This standardized sequence file format allows music to travel from one sequencer to another, since most modern sequencers can play SMFs, and store songs as SMFs. An SMF may not contain all of the bells and whistles that make any one sequencer unique, but it supports the features that are common to all sequencers, and this makes them extremely handy.
Two Types of SMFs
SMFs come in two flavors:
- Type 0 SMFs—contain a single sequencer track that holds recorded performances for up to 16 different sounds.
- Type 1 SMFs—can contain multiple sequencer tracks.
MIDI and Video
MIDI doesn’t have to be simply about music. Some MIDI devices allow performers—called “VJs”—to manipulate video images onstage, creating exciting visuals. Special software on a laptop computer along with DJ-style physical controls open up a world of video possibilities, letting VJs remotely select clips and control how they behave.
Also, some keyboards have a button that, when pressed, instantly reconfigures the keyboard’s knobs, sliders, and buttons as controllers for an attached video playback system.
Reference
Piano | Chromatic Percussion | Organ | Guitar | Reed | Pipe | Synth Lead | Synth Pad | Bass | Solo Strings | Ensemble | Brass | Synth Effects | Ethnic | Percussive | Sound Effects |
---|---|---|---|
1 Acoustic Grand | 65 Soprano Sax | 33 Acoustic Bass | 97 FX 1 (rain) |
2 Bright Acoustic | 66 Alto Sax | 34 Electric Bass(finger) | 98 FX 2 (soundtrack) |
3 Electric Grand | 67 Tenor Sax | 35 Electric Bass(pick) | 99 FX 3 (crystal) |
4 Honky-Tonk | 68 Baritone Sax | 36 Fretless Bass | 100 FX 4 (atmosphere) |
5 Electric Piano 1 | 69 Oboe | 37 Slap Bass 1 | 101 FX 5 (brightness) |
6 Electric Piano 2 | 70 English Horn | 38 Slap Bass 2 | 102 FX 6 (goblins) |
7 Harpsichord | 71 Bassoon | 39 Synth Bass 1 | 103 FX 7 (echoes) |
8 Clavinet | 72 Clarinet | 40 Synth Bass 2 | 104 FX 8 (sci-fi) |
9 Celesta | 73 Piccolo | 41 Violin | 105 Sitar |
10 Glockenspiel | 74 Flute | 42 Viola | 106 Banjo |
11 Music Box | 75 Recorder | 43 Cello | 107 Shamisen |
12 Vibraphone | 76 Pan Flute | 44 Contrabass | 108 Koto |
13 Marimba | 77 Blown Bottle | 45 Tremolo Strings | 109 Kalimba |
14 Xylophone | 78 Skakuhachi | 46 Pizzicato Strings| | 110 Bagpipe |
15 Tubular Bells | 79 Whistle | 47 Orchestral Strings | 111 Fiddle |
16 Dulcimer | 80 Ocarina | 48 Timpani | 112 Shanai |
17 Drawbar Organ | 81 Lead 1 (square) | 49 String Ensemble 1 | 113 Tinkle Bell |
18 Percussive Organ | 82 Lead 2 (sawtooth) | 50 String Ensemble 2 | 114 Agogo |
19 Rock Organ | 83 Lead 3 (calliope) | 51 SynthStrings 1 | 115 Steel Drums |
20 Church Organ | 84 Lead 4 (chiff) | 52 SynthStrings 2 | 116 Woodblock |
21 Reed Organ | 85 Lead 5 (charang) | 53 Choir Aahs | 117 Taiko Drum |
22 Accordion | 86 Lead 6 (voice) | 54 Voice Oohs | 118 Melodic Tom |
23 Harmonica | 87 Lead 7 (fifths) | 55 Synth Voice | 119 Synth Drum |
24 Tango Accordion | 88 Lead 8 (bass+lead) | 56 Orchestra Hit | 120 Reverse Cymbal |
25 Nylon String Guitar | 89 Pad 1 (new age) | 57 Trumpet | 121 Guitar Fret Noise |
26 Steel String Guitar | 90 Pad 2 (warm) | 58 Trombone | 122 Breath Noise |
27 Electric Jazz Guitar | 91 Pad 3 (polysynth) | 59 Tuba | 123 Seashore |
28 Electric Clean Guitar | 92 Pad 4 (choir) | 60 Muted Trumpet | 124 Bird Tweet |
29 Electric Muted Guitar | 93 Pad 5 (bowed) | 61 French Horn | 125 Telephone Ring |
30 Overdriven Guitar | 94 Pad 6 (metallic) | 62 Brass Section | 126 Helicopter |
31 Distortion Guitar | 95 Pad 7 (halo) | 63 SynthBrass 1 | 127 Applause |
32 Guitar Harmonics | 96 Pad 8 (sweep) | 64 SynthBrass 2 | 128 Gunshot |
Musical Instrument Digital Interface - protocol for representing musical content (pitch, duration, timbre, dynamics, etc.) via numbers in a range from 0-127.