MIDI Pitch Pipe

This form generates a MIDI file containing a single 4-beat whole note at t=120 (hence, a duration of 2 seconds) given the specified MIDI instrument and pitch.

Instrument: Pitch:

Note: the inputs need to be (decimal) integers based on the MIDI specifications, as follows:


Instrument

The following was optained from the MIDI Manufacturers Association (MMA) website. The numbers have been decremented by one to fit the desired input.
General MIDI Instrument Patch Map 

#         Instrument
0.      Acoustic Grand Piano            64.     Soprano Sax
1.      Bright Acoustic Piano           65.     Alto Sax
2.      Electric Grand Piano            66.     Tenor Sax
3.      Honky-tonk Piano                67.     Baritone Sax
4.      Electric Piano 1                68.     Oboe
5.      Electric Piano 2                69.     English Horn
6.      Harpsichord                     70.     Bassoon
7.      Clavi                           71.     Clarinet
8.      Celesta                         72.     Piccolo
9.      Glockenspiel                    73.     Flute
10.     Music Box                       74.     Recorder
11.     Vibraphone                      75.     Pan Flute
12.     Marimba                         76.     Blown Bottle
13.     Xylophone                       77.     Shakuhachi
14.     Tubular Bells                   78.     Whistle
15.     Dulcimer                        79.     Ocarina
16.     Drawbar Organ                   80.     Lead 1 (square)
17.     Percussive Organ                81.     Lead 2 (sawtooth)
18.     Rock Organ                      82.     Lead 3 (calliope)
19.     Church Organ                    83.     Lead 4 (chiff)
20.     Reed Organ                      84.     Lead 5 (charang)
21.     Accordion                       85.     Lead 6 (voice)
22.     Harmonica                       86.     Lead 7 (fifths)
23.     Tango Accordion                 87.     Lead 8 (bass + lead)
24.     Acoustic Guitar (nylon)         88.     Pad 1 (new age)
25.     Acoustic Guitar (steel)         89.     Pad 2 (warm)
26.     Electric Guitar (jazz)          90.     Pad 3 (polysynth)
27.     Electric Guitar (clean)         91.     Pad 4 (choir)
28.     Electric Guitar (muted)         92.     Pad 5 (bowed)
29.     Overdriven Guitar               93.     Pad 6 (metallic)
30.     Distortion Guitar               94.     Pad 7 (halo)
31.     Guitar harmonics                95.     Pad 8 (sweep)
32.     Acoustic Bass                   96.     FX 1 (rain)
33.     Electric Bass (finger)          97.     FX 2 (soundtrack)
34.     Electric Bass (pick)            98.     FX 3 (crystal)
35.     Fretless Bass                   99.     FX 4 (atmosphere)
36.     Slap Bass 1                     100.    FX 5 (brightness)
37.     Slap Bass 2                     101.    FX 6 (goblins)
38.     Synth Bass 1                    102.    FX 7 (echoes)
39.     Synth Bass 2                    103.    FX 8 (sci-fi)
40.     Violin                          104.    Sitar
41.     Viola                           105.    Banjo
42.     Cello                           106.    Shamisen
43.     Contrabass                      107.    Koto
44.     Tremolo Strings                 108.    Kalimba
45.     Pizzicato Strings               109.    Bag pipe
46.     Orchestral Harp                 110.    Fiddle
47.     Timpani                         111.    Shanai
48.     String Ensemble 1               112.    Tinkle Bell
49.     String Ensemble 2               113.    Agogo
50.     SynthStrings 1                  114.    Steel Drums
51.     SynthStrings 2                  115.    Woodblock
52.     Choir Aahs                      116.    Taiko Drum
53.     Voice Oohs                      117.    Melodic Tom
54.     Synth Voice                     118.    Synth Drum
55.     Orchestra Hit                   119.    Reverse Cymbal
56.     Trumpet                         120.    Guitar Fret Noise
57.     Trombone                        121.    Breath Noise
58.     Tuba                            122.    Seashore
59.     Muted Trumpet                   123.    Bird Tweet
60.     French Horn                     124.    Telephone Ring
61.     Brass Section                   125.    Helicopter
62.     SynthBrass 1                    126.    Applause
63.     SynthBrass 2                    127.    Gunshot

Note: While GM does not define the actual characteristics of any sounds, the names in parentheses after each of the synth leads, pads, and sound effects are, in particular, intended only as guides).


Pitch

The following was snipped from the Harmony Central MIDI page website.

Octave # Note Numbers
CC#DD# EFF#G G#AA#B
-1 01 2 3 45 678 91011
0121314 151617181920 2122 23
1242526272829303132333435
2363738394041424344454647
348495051525354 5556575859
4606162636465666768697071
5727374757677787980818283
6848586878889909192939495
796979899100101102103104105106107
8108109110111112113114115116117118119
9120121122123124125 126127

Note: The MIDI specification only defines note number 60 as "Middle C", and all other notes are relative. The absolute octave number designations shown here are based on Middle C = C4, which is an arbitrary assignment.


This generator simply outputs a MIDI file based on a template, by changing the two parameters. I have little knowledge regarding the exact MIDI specifications, so this generator is not guaranteed to be either robust or fully compliant with MIDI specs. Use at your own risk.