Home Manual Reference Source Test

src/model/instruments.js

  1. /**
  2. * Voice instruments = General MIDI Level-1 program list grouped into the 16 standard families.
  3. * 8 programs each, 128 total. Keys are family names; values are program-name arrays
  4. * in canonical GM 1.0 program order, so the global program number is the position
  5. * when families are concatenated (familyIndex * 8 + indexInFamily).
  6. * @type {Object<string, string[]>}
  7. * @example
  8. * Object.keys(INSTRUMENTS)[0]; // "Piano" (family at index 0)
  9. * INSTRUMENTS.Piano[0]; // "Acoustic Grand Piano" (GM program 0)
  10. * Object.keys(INSTRUMENTS)[9]; // "Pipe" (family at index 9)
  11. * INSTRUMENTS.Pipe[1]; // "Flute" (GM program 73 = 9*8+1)
  12. */
  13. export const INSTRUMENTS = {
  14. Piano: [
  15. "Acoustic Grand Piano",
  16. "Bright Acoustic Piano",
  17. "Electric Grand Piano",
  18. "Honky-tonk Piano",
  19. "Electric Piano 1",
  20. "Electric Piano 2",
  21. "Harpsichord",
  22. "Clavinet",
  23. ],
  24. "Chromatic Percussion": [
  25. "Celesta",
  26. "Glockenspiel",
  27. "Music Box",
  28. "Vibraphone",
  29. "Marimba",
  30. "Xylophone",
  31. "Tubular Bells",
  32. "Dulcimer",
  33. ],
  34. Organ: [
  35. "Drawbar Organ",
  36. "Percussive Organ",
  37. "Rock Organ",
  38. "Church Organ",
  39. "Reed Organ",
  40. "Accordion",
  41. "Harmonica",
  42. "Tango Accordion",
  43. ],
  44. Guitar: [
  45. "Acoustic Guitar (nylon)",
  46. "Acoustic Guitar (steel)",
  47. "Electric Guitar (jazz)",
  48. "Electric Guitar (clean)",
  49. "Electric Guitar (muted)",
  50. "Overdriven Guitar",
  51. "Distortion Guitar",
  52. "Guitar Harmonics",
  53. ],
  54. Bass: [
  55. "Acoustic Bass",
  56. "Electric Bass (finger)",
  57. "Electric Bass (pick)",
  58. "Fretless Bass",
  59. "Slap Bass 1",
  60. "Slap Bass 2",
  61. "Synth Bass 1",
  62. "Synth Bass 2",
  63. ],
  64. Strings: [
  65. "Violin",
  66. "Viola",
  67. "Cello",
  68. "Contrabass",
  69. "Tremolo Strings",
  70. "Pizzicato Strings",
  71. "Orchestral Harp",
  72. "Timpani",
  73. ],
  74. Ensemble: [
  75. "String Ensemble 1",
  76. "String Ensemble 2",
  77. "Synth Strings 1",
  78. "Synth Strings 2",
  79. "Choir Aahs",
  80. "Voice Oohs",
  81. "Synth Voice",
  82. "Orchestra Hit",
  83. ],
  84. Brass: [
  85. "Trumpet",
  86. "Trombone",
  87. "Tuba",
  88. "Muted Trumpet",
  89. "French Horn",
  90. "Brass Section",
  91. "Synth Brass 1",
  92. "Synth Brass 2",
  93. ],
  94. Reed: [
  95. "Soprano Sax",
  96. "Alto Sax",
  97. "Tenor Sax",
  98. "Baritone Sax",
  99. "Oboe",
  100. "English Horn",
  101. "Bassoon",
  102. "Clarinet",
  103. ],
  104. Pipe: [
  105. "Piccolo",
  106. "Flute",
  107. "Recorder",
  108. "Pan Flute",
  109. "Blown Bottle",
  110. "Shakuhachi",
  111. "Whistle",
  112. "Ocarina",
  113. ],
  114. "Synth Lead": [
  115. "Lead 1 (square)",
  116. "Lead 2 (sawtooth)",
  117. "Lead 3 (calliope)",
  118. "Lead 4 (chiff)",
  119. "Lead 5 (charang)",
  120. "Lead 6 (voice)",
  121. "Lead 7 (fifths)",
  122. "Lead 8 (bass + lead)",
  123. ],
  124. "Synth Pad": [
  125. "Pad 1 (new age)",
  126. "Pad 2 (warm)",
  127. "Pad 3 (polysynth)",
  128. "Pad 4 (choir)",
  129. "Pad 5 (bowed)",
  130. "Pad 6 (metallic)",
  131. "Pad 7 (halo)",
  132. "Pad 8 (sweep)",
  133. ],
  134. "Synth Effects": [
  135. "FX 1 (rain)",
  136. "FX 2 (soundtrack)",
  137. "FX 3 (crystal)",
  138. "FX 4 (atmosphere)",
  139. "FX 5 (brightness)",
  140. "FX 6 (goblins)",
  141. "FX 7 (echoes)",
  142. "FX 8 (sci-fi)",
  143. ],
  144. Ethnic: [
  145. "Sitar",
  146. "Banjo",
  147. "Shamisen",
  148. "Koto",
  149. "Kalimba",
  150. "Bagpipe",
  151. "Fiddle",
  152. "Shanai",
  153. ],
  154. Percussive: [
  155. "Tinkle Bell",
  156. "Agogo",
  157. "Steel Drums",
  158. "Woodblock",
  159. "Taiko Drum",
  160. "Melodic Tom",
  161. "Synth Drum",
  162. "Reverse Cymbal",
  163. ],
  164. "Sound Effects": [
  165. "Guitar Fret Noise",
  166. "Breath Noise",
  167. "Seashore",
  168. "Bird Tweet",
  169. "Telephone Ring",
  170. "Helicopter",
  171. "Applause",
  172. "Gunshot",
  173. ],
  174. };