0
|
1 /*
|
|
2 * midiinfo.h - A collection of macros and constants for MIDI programming.
|
|
3 * These should work independant of 'Steevs MIDI Library'
|
|
4 * Version 1.4
|
|
5 *
|
|
6 * AUTHOR: Steven Goodwin (StevenGoodwin@gmail.com)
|
|
7 * Copyright 1998-2010, Steven Goodwin.
|
|
8 *
|
|
9 * This program is free software; you can redistribute it and/or
|
|
10 * modify it under the terms of the GNU General Public License as
|
|
11 * published by the Free Software Foundation; either version 2 of
|
|
12 * the License,or (at your option) any later version.
|
|
13 *
|
|
14 * This program is distributed in the hope that it will be useful,
|
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 * GNU General Public License for more details.
|
|
18 *
|
|
19 * You should have received a copy of the GNU General Public License
|
|
20 * along with this program; if not, write to the Free Software
|
|
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
22 */
|
|
23
|
|
24 #ifndef _MIDIINFO_H
|
|
25 #define _MIDIINFO_H
|
|
26
|
|
27 /*
|
|
28 ** MIDI Messages [ consist of message, and optional bytes ]
|
|
29 ** a 'msg' has two nibbles: message type & channel
|
|
30 */
|
|
31 typedef enum {
|
|
32 msgNoteOff = 0x80, /* [ pitch, volume ] */
|
|
33 msgNoteOn = 0x90, /* [ pitch, volume ] */
|
|
34 msgNoteKeyPressure = 0xa0, /* [ pitch, pressure (after touch) ] */
|
|
35 msgSetParameter = 0xb0, /* [ param number (CC), setting ] */
|
|
36 msgSetProgram = 0xc0, /* [ program ] */
|
|
37 msgChangePressure = 0xd0, /* [ pressure (after touch) ] */
|
|
38 msgSetPitchWheel = 0xe0, /* [ LSB, MSG (two 7 bit values) ] */
|
|
39
|
|
40 msgMetaEvent = 0xff,
|
|
41 msgSysEx1 = 0xf0,
|
|
42 msgSysEx2 = 0xf7,
|
|
43
|
|
44 /* Alternative names */
|
|
45 msgPatchChange = msgSetProgram,
|
|
46 msgControlChange = msgSetParameter,
|
|
47
|
|
48 msgSysMask = 0xf0,
|
|
49 } tMIDI_MSG;
|
|
50
|
|
51 /*
|
|
52 ** Control Changes
|
|
53 */
|
|
54 typedef enum {
|
|
55 /* 0-31, where defined, all indicate the MSB */
|
|
56 ccBankSelect = 0,
|
|
57 ccModulation = 1,
|
|
58 ccBreathControl = 2,
|
|
59 ccUndefined3 = 3,
|
|
60 ccFootControl = 4,
|
|
61 ccPortamentoTime = 5,
|
|
62 ccDateEntry = 6,
|
|
63 ccVolume = 7,
|
|
64 ccBalance = 8,
|
|
65 ccUndefined9 = 9,
|
|
66 ccPan = 10,
|
|
67 ccExpression = 11,
|
|
68 ccEffectControl1 = 12,
|
|
69 ccEffectControl2 = 13,
|
|
70 ccUndefined14 = 14,
|
|
71 ccUndefined15 = 15,
|
|
72 ccGeneralPurpose1 = 16,
|
|
73 ccGeneralPurpose2 = 17,
|
|
74 ccGeneralPurpose3 = 18,
|
|
75 ccGeneralPurpose4 = 19,
|
|
76 /* 20-31 are undefined */
|
|
77 ccUndefined20 = 20,
|
|
78 ccUndefined21 = 21,
|
|
79 ccUndefined22 = 22,
|
|
80 ccUndefined23 = 23,
|
|
81 ccUndefined24 = 24,
|
|
82 ccUndefined25 = 25,
|
|
83 ccUndefined26 = 26,
|
|
84 ccUndefined27 = 27,
|
|
85 ccUndefined28 = 28,
|
|
86 ccUndefined29 = 29,
|
|
87 ccUndefined30 = 30,
|
|
88 ccUndefined31 = 31,
|
|
89 /* LSB for control changes 0-31 32-63 */
|
|
90 ccBankSelectLSB = 32,
|
|
91 ccModulationLSB = 33,
|
|
92 ccBreathControlLSB = 34,
|
|
93 ccUndefined35 = 35,
|
|
94 ccFootControlLSB = 36,
|
|
95 ccPortamentoTimeLSB = 37,
|
|
96 ccDateEntryLSB = 38,
|
|
97 ccVolumeLSB = 39,
|
|
98 ccBalanceLSB = 40,
|
|
99 ccUndefined41 = 41,
|
|
100 ccPanLSB = 42,
|
|
101 ccExpressionLSB = 43,
|
|
102 ccEffectControl1LSB = 44,
|
|
103 ccEffectControl2LSB = 45,
|
|
104 ccUndefined46 = 46,
|
|
105 ccUndefined47 = 47,
|
|
106 ccGeneralPurpose1LSB = 48,
|
|
107 ccGeneralPurpose2LSB = 49,
|
|
108 ccGeneralPurpose3LSB = 50,
|
|
109 ccGeneralPurpose4LSB = 51,
|
|
110 /* 52-63 are undefined */
|
|
111 ccUndefined52 = 52,
|
|
112 ccUndefined53 = 53,
|
|
113 ccUndefined54 = 54,
|
|
114 ccUndefined55 = 55,
|
|
115 ccUndefined56 = 56,
|
|
116 ccUndefined57 = 57,
|
|
117 ccUndefined58 = 58,
|
|
118 ccUndefined59 = 59,
|
|
119 ccUndefined60 = 60,
|
|
120 ccUndefined61 = 61,
|
|
121 ccUndefined62 = 62,
|
|
122 ccUndefined63 = 63,
|
|
123
|
|
124 ccSustainPedal = 64,
|
|
125 ccPortamento = 65,
|
|
126 ccPedalSustenuto = 66,
|
|
127 ccPedalSoft = 67,
|
|
128 ccLegatoFootSwitch = 68,
|
|
129 ccHold2 = 69,
|
|
130 ccSoundVariation = 70,
|
|
131 ccTimbre = 71,
|
|
132 ccReleaseTime = 72,
|
|
133 ccAttackTime = 73,
|
|
134 ccBrightness = 74,
|
|
135 ccReverb = 75,
|
|
136 ccDelay = 76,
|
|
137 ccPitchTranspose = 77,
|
|
138 ccFlange = 78,
|
|
139 ccSpecialFX = 79,
|
|
140 ccGeneralPurpose5 = 80,
|
|
141 ccGeneralPurpose6 = 81,
|
|
142 ccGeneralPurpose7 = 82,
|
|
143 ccGeneralPurpose8 = 83,
|
|
144 ccPortamentoControl = 84,
|
|
145 /* 85-90 are undefined */
|
|
146 ccUndefined85 = 85,
|
|
147 ccUndefined86 = 86,
|
|
148 ccUndefined87 = 87,
|
|
149 ccUndefined88 = 88,
|
|
150 ccUndefined89 = 89,
|
|
151 ccUndefined90 = 90,
|
|
152 /* Effects depth */
|
|
153 ccFXDepth = 91,
|
|
154 ccTremeloDepth = 92,
|
|
155 ccChorusDepth = 93,
|
|
156 ccCelestaDepth = 94,
|
|
157 ccPhaserDepth = 95,
|
|
158 ccDataInc = 96,
|
|
159 ccDataDec = 97,
|
|
160 ccNonRegParamLSB = 98,
|
|
161 ccNonRefParamMSB = 99,
|
|
162 ccRegParamLSB = 100,
|
|
163 ccRegParamMSB = 101,
|
|
164 /* 102-119 are undefined */
|
|
165 ccUndefined102 = 102,
|
|
166 ccUndefined103 = 103,
|
|
167 ccUndefined104 = 104,
|
|
168 ccUndefined105 = 105,
|
|
169 ccUndefined106 = 106,
|
|
170 ccUndefined107 = 107,
|
|
171 ccUndefined108 = 108,
|
|
172 ccUndefined109 = 109,
|
|
173 ccUndefined110 = 110,
|
|
174 ccUndefined111 = 111,
|
|
175 ccUndefined112 = 112,
|
|
176 ccUndefined113 = 113,
|
|
177 ccUndefined114 = 114,
|
|
178 ccUndefined115 = 115,
|
|
179 ccUndefined116 = 116,
|
|
180 ccUndefined117 = 117,
|
|
181 ccUndefined118 = 118,
|
|
182 ccUndefined119 = 119,
|
|
183 ccAllSoundOff = 120,
|
|
184 ccResetAllControllers = 121,
|
|
185 ccLocalControl = 122,
|
|
186 ccAllNotesOff = 123,
|
|
187 ccOmniModeOff = 124,
|
|
188 ccOmniModeOn = 125,
|
|
189 ccMonoModeOn = 126,
|
|
190 ccPolyModeOn = 127,
|
|
191 /* Alternative names */
|
|
192 ccModWheel = 1,
|
|
193 /* All sound controllers have only LSB */
|
|
194 ccHarmContent = 71,
|
|
195 ccSoundController1 = 70,
|
|
196 ccSoundController2 = 71,
|
|
197 ccSoundController3 = 72,
|
|
198 ccSoundController4 = 73,
|
|
199 ccSoundController5 = 74,
|
|
200 ccSoundController6 = 75,
|
|
201 ccSoundController7 = 76,
|
|
202 ccSoundController8 = 77,
|
|
203 ccSoundController9 = 78,
|
|
204 ccSoundController10 = 79,
|
|
205 ccEffect1Depth = 91,
|
|
206 ccEffect2Depth = 92,
|
|
207 ccEffect3Depth = 93,
|
|
208 ccEffect4Depth = 94,
|
|
209 ccEffect5Depth = 95,
|
|
210 ccDetuneDepth = 94,
|
|
211
|
|
212 } tMIDI_CC;
|
|
213
|
|
214 /*
|
|
215 ** System Common (Status byte: 1111 0ttt)
|
|
216 */
|
|
217 typedef enum {
|
|
218 sysUndefinedF1 = 0xf1,
|
|
219 sysSongPosition = 0xf2, /* [LSB, MSB] */
|
|
220 sysSongSelect = 0xf3,
|
|
221 sysUndefinedF4 = 0xf4,
|
|
222 sysUndefinedF5 = 0xf5,
|
|
223 sysTuneRequest = 0xf6,
|
|
224 sysEOX = 0xf7, /* End of Exclusive */
|
|
225 } tMIDI_SYSCOMMON;
|
|
226
|
|
227 /*
|
|
228 ** System Real Time (Status byte: 1111 1ttt)
|
|
229 */
|
|
230 typedef enum {
|
|
231 srtTimingClock = 0xf8,
|
|
232 srtUndefinedF9 = 0xf9,
|
|
233 srtStart = 0xfa,
|
|
234 srtContinue = 0xfb,
|
|
235 srtStop = 0xfc,
|
|
236 srtUndefinedFD = 0xfd,
|
|
237 srtActiveSensing = 0xfe,
|
|
238 srtSystemReset = 0xff,
|
|
239 } tMIDI_REALTIME;
|
|
240
|
|
241 /*
|
|
242 ** System Exclusive (Status byte: 1111 0000)
|
|
243 **
|
|
244 ** The first byte of a sysex must be the identification number
|
|
245 ** (7 bits, MSB=0). This is followed by an arbitary number of
|
|
246 ** data bytes (all MSB=0), and ending in the sexEOX msg.
|
|
247 ** Note: Any other status byte (where MSB=1) will also terminate
|
|
248 ** a sysex message, with the exception of the System Real Time
|
|
249 ** events above.
|
|
250 */
|
|
251 typedef enum {
|
|
252 sexEOX = 0xf7,
|
|
253 } tMIDI_SYSEX;
|
|
254
|
|
255 /*
|
|
256 ** Key signatures
|
|
257 */
|
|
258 typedef enum {
|
|
259 keyCFlatMaj = 0x87,
|
|
260 keyGFlatMaj = 0x86,
|
|
261 keyDFlatMaj = 0x85,
|
|
262 keyAFlatMaj = 0x84,
|
|
263 keyEFlatMaj = 0x83,
|
|
264 keyBFlatMaj = 0x82,
|
|
265 keyFMaj = 0x81,
|
|
266 keyCMaj = 0x00,
|
|
267 keyGMaj = 0x01,
|
|
268 keyDMaj = 0x02,
|
|
269 keyAMaj = 0x03,
|
|
270 keyEMaj = 0x04,
|
|
271 keyBMaj = 0x05,
|
|
272 keyFSharpMaj = 0x06,
|
|
273 keyCSharpMaj = 0x07,
|
|
274 keyCFlatMin = 0xc7,
|
|
275 keyGFlatMin = 0xc6,
|
|
276 keyDFlatMin = 0xc5,
|
|
277 keyAFlatMin = 0xc4,
|
|
278 keyEFlatMin = 0xc3,
|
|
279 keyBFlatMin = 0xc2,
|
|
280 keyFMin = 0xc1,
|
|
281 keyCMin = 0x40,
|
|
282 keyGMin = 0x41,
|
|
283 keyDMin = 0x42,
|
|
284 keyAMin = 0x43,
|
|
285 keyEMin = 0x44,
|
|
286 keyBMin = 0x45,
|
|
287 keyFSharpMin = 0x46,
|
|
288 keyCSharpMin = 0x47,
|
|
289 /* Format: Bit 7=represent as negative, Bit 6=Minor key, bits 0-3=key id*/
|
|
290 /* By no coincidence, masking out the 'minor' flag,we have a signed char value */
|
|
291 keyMaskNeg = 0x80,
|
|
292 keyMaskFlatKeys = 0x80,
|
|
293 keyMaskMin = 0x40,
|
|
294 keyMaskKey = 0x07,
|
|
295 } tMIDI_KEYSIG;
|
|
296
|
|
297
|
|
298 typedef enum {
|
|
299 metaSequenceNumber = 0, /* followed by 2 and then the sequence number */
|
|
300 /* Text Information */
|
|
301 metaTextEvent = 1,
|
|
302 metaCopyright = 2,
|
|
303 metaTrackName = 3,
|
|
304 metaInstrument = 4,
|
|
305 metaLyric = 5,
|
|
306 metaMarker = 6,
|
|
307 metaCuePoint = 7,
|
|
308 /* Data */
|
|
309 metaMIDIPort = 0x21, /* followed by 1, then the port number */
|
|
310 metaEndSequence = 0x2f, /* followed by zero */
|
|
311 metaSetTempo = 0x51, /* followed by 3 (size), and time between beats in us: us = 60000000/tempo. Write as three bytes, MSG first */
|
|
312 metaSMPTEOffset = 0x54, /* followed by 5 (size), and 5 bytes detailing frame info: hr.mins.sec:frame.ff */
|
|
313 metaTimeSig = 0x58, /* followed by 4 (size), and 4 bytes detailing nominator and denominator of sig,clock_in_metro_tick and notated_32nds_in_quarter */
|
|
314 metaKeySig = 0x59, /* followed by 2 (size), and the key (-7=7 flats, 0=key of C,7=7 sharps)), followed by a 'major?' flag (0=major, 1=minor) */
|
|
315 /* Custom */
|
|
316 metaSequencerSpecific = 0x7f, /* followed by the number of bytes, then the data */
|
|
317 } tMIDI_META;
|
|
318
|
|
319 typedef enum {
|
|
320 textTextEvent = 1,
|
|
321 textCopyright = 2,
|
|
322 textTrackName = 3,
|
|
323 textInstrument = 4,
|
|
324 textLyric = 5,
|
|
325 textMarker = 6,
|
|
326 textCuePoint = 7,
|
|
327 } tMIDI_TEXT;
|
|
328
|
|
329
|
|
330 /*
|
|
331 ** MIDI Constants
|
|
332 */
|
|
333 #define MIDI_WHEEL_CENTRE 8192
|
|
334
|
|
335 /*
|
|
336 ** MIDI Channels
|
|
337 */
|
|
338 #define MIDI_CHANNEL_1 1
|
|
339 #define MIDI_CHANNEL_2 2
|
|
340 #define MIDI_CHANNEL_3 3
|
|
341 #define MIDI_CHANNEL_4 4
|
|
342 #define MIDI_CHANNEL_5 5
|
|
343 #define MIDI_CHANNEL_6 6
|
|
344 #define MIDI_CHANNEL_7 7
|
|
345 #define MIDI_CHANNEL_8 8
|
|
346 #define MIDI_CHANNEL_9 9
|
|
347 #define MIDI_CHANNEL_10 10
|
|
348 #define MIDI_CHANNEL_11 11
|
|
349 #define MIDI_CHANNEL_12 12
|
|
350 #define MIDI_CHANNEL_13 13
|
|
351 #define MIDI_CHANNEL_14 14
|
|
352 #define MIDI_CHANNEL_15 15
|
|
353 #define MIDI_CHANNEL_16 16
|
|
354
|
|
355 #define MIDI_CHANNEL_DRUMS 10
|
|
356
|
|
357 /*
|
|
358 ** Notes
|
|
359 */
|
|
360 #define MIDI_OCTAVE 12
|
|
361
|
|
362 /*
|
|
363 ** The MIDI spec only indicates middle C to be
|
|
364 ** 60. It doesn't indicate which octave this is.
|
|
365 ** Some may consider 4, if they label octaves
|
|
366 ** from -1, instead of 0. I have adopted an octave
|
|
367 ** number here for tighter intergration.
|
|
368 */
|
|
369 #define MIDI_NOTE_MIDDLE_C MIDI_NOTE_C5
|
|
370
|
|
371 #define MIDI_NOTE_C 0
|
|
372 #define MIDI_NOTE_C_SHARP 1
|
|
373 #define MIDI_NOTE_C_FLAT -11
|
|
374 #define MIDI_NOTE_D 2
|
|
375 #define MIDI_NOTE_D_SHARP 3
|
|
376 #define MIDI_NOTE_D_FLAT 1
|
|
377 #define MIDI_NOTE_E 4
|
|
378 #define MIDI_NOTE_E_SHARP 5
|
|
379 #define MIDI_NOTE_E_FLAT 3
|
|
380 #define MIDI_NOTE_F 5
|
|
381 #define MIDI_NOTE_F_SHARP 6
|
|
382 #define MIDI_NOTE_F_FLAT 5
|
|
383 #define MIDI_NOTE_G 7
|
|
384 #define MIDI_NOTE_G_SHARP 8
|
|
385 #define MIDI_NOTE_G_FLAT 6
|
|
386 #define MIDI_NOTE_A 9
|
|
387 #define MIDI_NOTE_A_SHARP 10
|
|
388 #define MIDI_NOTE_A_FLAT 8
|
|
389 #define MIDI_NOTE_B 11
|
|
390 #define MIDI_NOTE_B_SHARP 12
|
|
391 #define MIDI_NOTE_B_FLAT 10
|
|
392
|
|
393 #define MIDI_NOTE_C0 0
|
|
394 #define MIDI_NOTE_C1 12
|
|
395 #define MIDI_NOTE_C2 24
|
|
396 #define MIDI_NOTE_C3 36
|
|
397 #define MIDI_NOTE_C4 48
|
|
398 #define MIDI_NOTE_C5 60
|
|
399 #define MIDI_NOTE_C6 72
|
|
400 #define MIDI_NOTE_C7 84
|
|
401 #define MIDI_NOTE_C8 96
|
|
402 #define MIDI_NOTE_C9 108
|
|
403 #define MIDI_NOTE_C10 120
|
|
404
|
|
405 #define MIDI_OCTAVE_0 MIDI_NOTE_C0
|
|
406 #define MIDI_OCTAVE_1 MIDI_NOTE_C1
|
|
407 #define MIDI_OCTAVE_2 MIDI_NOTE_C2
|
|
408 #define MIDI_OCTAVE_3 MIDI_NOTE_C3
|
|
409 #define MIDI_OCTAVE_4 MIDI_NOTE_C4
|
|
410 #define MIDI_OCTAVE_5 MIDI_NOTE_C5
|
|
411 #define MIDI_OCTAVE_6 MIDI_NOTE_C6
|
|
412 #define MIDI_OCTAVE_7 MIDI_NOTE_C7
|
|
413 #define MIDI_OCTAVE_8 MIDI_NOTE_C8
|
|
414 #define MIDI_OCTAVE_9 MIDI_NOTE_C9
|
|
415 #define MIDI_OCTAVE_10 MIDI_NOTE_C10
|
|
416
|
|
417
|
|
418 /*
|
|
419 ** Note Duration (on PPQN=384)
|
|
420 */
|
|
421 #define MIDI_NOTE_BREVE 1536
|
|
422 #define MIDI_NOTE_MINIM 768
|
|
423 #define MIDI_NOTE_CROCHET 384
|
|
424 #define MIDI_NOTE_QUAVER 192
|
|
425 #define MIDI_NOTE_SEMIQUAVER 96
|
|
426 #define MIDI_NOTE_SEMIDEMIQUAVER 48
|
|
427
|
|
428 #define MIDI_NOTE_DOTTED_MINIM (768+384)
|
|
429 #define MIDI_NOTE_DOTTED_CROCHET (384+192)
|
|
430 #define MIDI_NOTE_DOTTED_QUAVER (192+96)
|
|
431 #define MIDI_NOTE_DOTTED_SEMIQUAVER (96+48)
|
|
432 #define MIDI_NOTE_DOTTED_SEMIDEMIQUAVER (48+24)
|
|
433
|
|
434 #define MIDI_NOTE_TRIPLE_CROCHET 256 /* 3 notes in 2 crochet */
|
|
435
|
|
436
|
|
437 /*
|
|
438 ** Notes - Volume
|
|
439 */
|
|
440 #define MIDI_VOL_FULL 127
|
|
441 #define MIDI_VOL_HALF 64
|
|
442 #define MIDI_VOL_OFF 0
|
|
443
|
|
444
|
|
445 /*
|
|
446 ** Notes - Instrument Names
|
|
447 */
|
|
448 #define MIDI_PATCH_ACOUSTIC_GRAND_PIANO 0
|
|
449 #define MIDI_PATCH_BRIGHT_ACOUSTIC_PIANO 1
|
|
450 #define MIDI_PATCH_ELECTRIC_GRAND_PIANO 2
|
|
451 #define MIDI_PATCH_HONKY_TONK_PIANO 3
|
|
452 #define MIDI_PATCH_ELECTRIC_PIANO_1 4
|
|
453 #define MIDI_PATCH_ELECTRIC_PIANO_2 5
|
|
454 #define MIDI_PATCH_HARPSICHORD 6
|
|
455 #define MIDI_PATCH_CLAVI 7
|
|
456 #define MIDI_PATCH_CELESTA 8
|
|
457 #define MIDI_PATCH_GLOCKENSPIEL 9
|
|
458 #define MIDI_PATCH_MUSIC_BOX 10
|
|
459 #define MIDI_PATCH_VIBRAPHONE 11
|
|
460 #define MIDI_PATCH_MARIMBA 12
|
|
461 #define MIDI_PATCH_XYLOPHONE 13
|
|
462 #define MIDI_PATCH_TUBULAR_BELLS 14
|
|
463 #define MIDI_PATCH_DULCIMER 15
|
|
464 #define MIDI_PATCH_DRAWBAR_ORGAN 16
|
|
465 #define MIDI_PATCH_PERCUSSIVE_ORGAN 17
|
|
466 #define MIDI_PATCH_ROCK_ORGAN 18
|
|
467 #define MIDI_PATCH_CHURCH_ORGAN 19
|
|
468 #define MIDI_PATCH_REED_ORGAN 20
|
|
469 #define MIDI_PATCH_ACCORDION 21
|
|
470 #define MIDI_PATCH_HARMONICA 22
|
|
471 #define MIDI_PATCH_TANGO_ACCORDION 23
|
|
472 #define MIDI_PATCH_ACOUSTIC_GUITAR_NYLON 24
|
|
473 #define MIDI_PATCH_ACOUSTIC_GUITAR_STEEL 25
|
|
474 #define MIDI_PATCH_ELECTRIC_GUITAR_JAZZ 26
|
|
475 #define MIDI_PATCH_ELECTRIC_GUITAR_CLEAN 27
|
|
476 #define MIDI_PATCH_ELECTRIC_GUITAR_MUTED 28
|
|
477 #define MIDI_PATCH_OVERDRIVEN_GUITAR 29
|
|
478 #define MIDI_PATCH_DISTORTION_GUITAR 30
|
|
479 #define MIDI_PATCH_GUITAR_HARMONICS 31
|
|
480 #define MIDI_PATCH_ACOUSTIC_BASS 32
|
|
481 #define MIDI_PATCH_ELECTRIC_BASS_FINGER 33
|
|
482 #define MIDI_PATCH_ELECTRIC_BASS_PICK 34
|
|
483 #define MIDI_PATCH_FRETLESS_BASS 35
|
|
484 #define MIDI_PATCH_SLAP_BASS_1 36
|
|
485 #define MIDI_PATCH_SLAP_BASS_2 37
|
|
486 #define MIDI_PATCH_SYNTH_BASS_1 38
|
|
487 #define MIDI_PATCH_SYNTH_BASS_2 39
|
|
488 #define MIDI_PATCH_VIOLIN 40
|
|
489 #define MIDI_PATCH_VIOLA 41
|
|
490 #define MIDI_PATCH_CELLO 42
|
|
491 #define MIDI_PATCH_CONTRABASS 43
|
|
492 #define MIDI_PATCH_TREMOLO_STRINGS 44
|
|
493 #define MIDI_PATCH_PIZZICATO_STRINGS 45
|
|
494 #define MIDI_PATCH_ORCHESTRAL_HARP 46
|
|
495 #define MIDI_PATCH_TIMPANI 47
|
|
496 #define MIDI_PATCH_STRING_ENSEMBLE_1 48
|
|
497 #define MIDI_PATCH_STRING_ENSEMBLE_2 49
|
|
498 #define MIDI_PATCH_SYNTHSTRINGS_1 50
|
|
499 #define MIDI_PATCH_SYNTHSTRINGS_2 51
|
|
500 #define MIDI_PATCH_CHOIR_AAHS 52
|
|
501 #define MIDI_PATCH_VOICE_OOHS 53
|
|
502 #define MIDI_PATCH_SYNTH_VOICE 54
|
|
503 #define MIDI_PATCH_ORCHESTRA_HIT 55
|
|
504 #define MIDI_PATCH_TRUMPET 56
|
|
505 #define MIDI_PATCH_TROMBONE 57
|
|
506 #define MIDI_PATCH_TUBA 58
|
|
507 #define MIDI_PATCH_MUTED_TRUMPET 59
|
|
508 #define MIDI_PATCH_FRENCH_HORN 60
|
|
509 #define MIDI_PATCH_BRASS_SECTION 61
|
|
510 #define MIDI_PATCH_SYNTHBRASS_1 62
|
|
511 #define MIDI_PATCH_SYNTHBRASS_2 63
|
|
512 #define MIDI_PATCH_SOPRANO_SAX 64
|
|
513 #define MIDI_PATCH_ALTO_SAX 65
|
|
514 #define MIDI_PATCH_TENOR_SAX 66
|
|
515 #define MIDI_PATCH_BARITONE_SAX 67
|
|
516 #define MIDI_PATCH_OBOE 68
|
|
517 #define MIDI_PATCH_ENGLISH_HORN 69
|
|
518 #define MIDI_PATCH_BASSOON 70
|
|
519 #define MIDI_PATCH_CLARINET 71
|
|
520 #define MIDI_PATCH_PICCOLO 72
|
|
521 #define MIDI_PATCH_FLUTE 73
|
|
522 #define MIDI_PATCH_RECORDER 74
|
|
523 #define MIDI_PATCH_PAN_FLUTE 75
|
|
524 #define MIDI_PATCH_BLOWN_BOTTLE 76
|
|
525 #define MIDI_PATCH_SHAKUHACHI 77
|
|
526 #define MIDI_PATCH_WHISTLE 78
|
|
527 #define MIDI_PATCH_OCARINA 79
|
|
528 #define MIDI_PATCH_LEAD_1_SQUARE 80
|
|
529 #define MIDI_PATCH_LEAD_2_SAWTOOTH 81
|
|
530 #define MIDI_PATCH_LEAD_3_CALLIOPE 82
|
|
531 #define MIDI_PATCH_LEAD_4_CHIFF 83
|
|
532 #define MIDI_PATCH_LEAD_5_CHARANG 84
|
|
533 #define MIDI_PATCH_LEAD_6_VOICE 85
|
|
534 #define MIDI_PATCH_LEAD_7_FIFTHS 86
|
|
535 #define MIDI_PATCH_LEAD_8_BASS_AND_LEAD 87
|
|
536 #define MIDI_PATCH_PAD_1_NEW_AGE 88
|
|
537 #define MIDI_PATCH_PAD_2_WARM 89
|
|
538 #define MIDI_PATCH_PAD_3_POLYSYNTH 90
|
|
539 #define MIDI_PATCH_PAD_4_CHOIR 91
|
|
540 #define MIDI_PATCH_PAD_5_BOWED 92
|
|
541 #define MIDI_PATCH_PAD_6_METALLIC 93
|
|
542 #define MIDI_PATCH_PAD_7_HALO 94
|
|
543 #define MIDI_PATCH_PAD_8_SWEEP 95
|
|
544 #define MIDI_PATCH_FX_1_RAIN 96
|
|
545 #define MIDI_PATCH_FX_2_SOUNDTRACK 97
|
|
546 #define MIDI_PATCH_FX_3_CRYSTAL 98
|
|
547 #define MIDI_PATCH_FX_4_ATMOSPHERE 99
|
|
548 #define MIDI_PATCH_FX_5_BRIGHTNESS 100
|
|
549 #define MIDI_PATCH_FX_6_GOBLINS 101
|
|
550 #define MIDI_PATCH_FX_7_ECHOES 102
|
|
551 #define MIDI_PATCH_FX_8_SCIFI 103
|
|
552 #define MIDI_PATCH_SITAR 104
|
|
553 #define MIDI_PATCH_BANJO 105
|
|
554 #define MIDI_PATCH_SHAMISEN 106
|
|
555 #define MIDI_PATCH_KOTO 107
|
|
556 #define MIDI_PATCH_KALIMBA 108
|
|
557 #define MIDI_PATCH_BAG_PIPE 109
|
|
558 #define MIDI_PATCH_FIDDLE 110
|
|
559 #define MIDI_PATCH_SHANAI 111
|
|
560 #define MIDI_PATCH_TINKLE_BELL 112
|
|
561 #define MIDI_PATCH_AGOGO 113
|
|
562 #define MIDI_PATCH_STEEL_DRUMS 114
|
|
563 #define MIDI_PATCH_WOODBLOCK 115
|
|
564 #define MIDI_PATCH_TAIKO_DRUM 116
|
|
565 #define MIDI_PATCH_MELODIC_TOM 117
|
|
566 #define MIDI_PATCH_SYNTH_DRUM 118
|
|
567 #define MIDI_PATCH_REVERSE_CYMBAL 119
|
|
568 #define MIDI_PATCH_GUITAR_FRET NOISE 120
|
|
569 #define MIDI_PATCH_BREATH_NOISE 121
|
|
570 #define MIDI_PATCH_SEASHORE 122
|
|
571 #define MIDI_PATCH_BIRD_TWEET 123
|
|
572 #define MIDI_PATCH_TELEPHONE_RING 124
|
|
573 #define MIDI_PATCH_HELICOPTER 125
|
|
574 #define MIDI_PATCH_APPLAUSE 126
|
|
575 #define MIDI_PATCH_GUNSHOT 127
|
|
576
|
|
577
|
|
578 /*
|
|
579 ** Notes - Keyed Percussion Names
|
|
580 */
|
|
581 #define MIDI_DRUM_ACOUSTIC_BASS_DRUM 35
|
|
582 #define MIDI_DRUM_BASS_DRUM 36
|
|
583 #define MIDI_DRUM_SIDE_STICK 37
|
|
584 #define MIDI_DRUM_ACOUSTIC_SNARE 38
|
|
585 #define MIDI_DRUM_HAND_CLAP 39
|
|
586 #define MIDI_DRUM_ELECTRIC_SNARE 40
|
|
587 #define MIDI_DRUM_LOW_FLOOR_TOM 41
|
|
588 #define MIDI_DRUM_CLOSED_HI_HAT 42
|
|
589 #define MIDI_DRUM_HIGH_FLOOR_TOM 43
|
|
590 #define MIDI_DRUM_PEDAL_HI_HAT 44
|
|
591 #define MIDI_DRUM_LOW_TOM 45
|
|
592 #define MIDI_DRUM_OPEN_HI_HAT 46
|
|
593 #define MIDI_DRUM_LOW_MID_TOM 47
|
|
594 #define MIDI_DRUM_HI_MID_TOM 48
|
|
595 #define MIDI_DRUM_CRASH_CYMBAL_1 49
|
|
596 #define MIDI_DRUM_HIGH_TOM 50
|
|
597 #define MIDI_DRUM_RIDE_CYMBAL_1 51
|
|
598 #define MIDI_DRUM_CHINESE_CYMBAL 52
|
|
599 #define MIDI_DRUM_RIDE_BELL 53
|
|
600 #define MIDI_DRUM_TAMBOURINE 54
|
|
601 #define MIDI_DRUM_SPLASH_CYMBAL 55
|
|
602 #define MIDI_DRUM_COWBELL 56
|
|
603 #define MIDI_DRUM_CRASH_CYMBAL_2 57
|
|
604 #define MIDI_DRUM_VIBRA_SLAP 58
|
|
605 #define MIDI_DRUM_RIDE_CYMBAL_2 59
|
|
606 #define MIDI_DRUM_HI_BONGO 60
|
|
607 #define MIDI_DRUM_LOW_BONGO 61
|
|
608 #define MIDI_DRUM_MUTE_HI_CONGA 62
|
|
609 #define MIDI_DRUM_OPEN_HI_CONGA 63
|
|
610 #define MIDI_DRUM_LOW_CONGA 64
|
|
611 #define MIDI_DRUM_HIGH_TIMBALE 65
|
|
612 #define MIDI_DRUM_LOW_TIMBALE 66
|
|
613 #define MIDI_DRUM_HIGH_AGOGO 67
|
|
614 #define MIDI_DRUM_LOW_AGOGO 68
|
|
615 #define MIDI_DRUM_CABASA 69
|
|
616 #define MIDI_DRUM_MARACAS 70
|
|
617 #define MIDI_DRUM_SHORT_WHISTLE 71
|
|
618 #define MIDI_DRUM_LONG_WHISTLE 72
|
|
619 #define MIDI_DRUM_SHORT_GUIRO 73
|
|
620 #define MIDI_DRUM_LONG_GUIRO 74
|
|
621 #define MIDI_DRUM_CLAVES 75
|
|
622 #define MIDI_DRUM_HI_WOOD_BLOCK 76
|
|
623 #define MIDI_DRUM_LOW_WOOD_BLOCK 77
|
|
624 #define MIDI_DRUM_MUTE_CUICA 78
|
|
625 #define MIDI_DRUM_OPEN_CUICA 79
|
|
626 #define MIDI_DRUM_MUTE_TRIANGLE 80
|
|
627 #define MIDI_DRUM_OPEN_TRIANGLE 81
|
|
628
|
|
629
|
|
630 #endif /* _MIDIINFO_H */
|
|
631
|
|
632
|