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.
Note: the inputs need to be (decimal) integers based on the MIDI specifications, as follows:
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).
The following was snipped from the Harmony Central MIDI page website.
| Octave # | Note Numbers | |||||||||||
| C | C# | D | D# | E | F | F# | G | G# | A | A# | B | |
| -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 0 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 1 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
| 2 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 |
| 3 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
| 4 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |
| 5 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 |
| 6 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 |
| 7 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 |
| 8 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 |
| 9 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | ||||
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.