199
|
1 /*
|
|
2
|
|
3 TiMidity -- Experimental MIDI to WAVE converter
|
|
4 Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
|
|
5
|
|
6 This program is free software; you can redistribute it and/or modify
|
|
7 it under the terms of the GNU General Public License as published by
|
|
8 the Free Software Foundation; either version 2 of the License, or
|
|
9 (at your option) any later version.
|
|
10
|
|
11 This program is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 GNU General Public License for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with this program; if not, write to the Free Software
|
|
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
19
|
|
20 playmidi.h
|
|
21
|
|
22 */
|
|
23
|
|
24 /* Midi events */
|
|
25 #define ME_NONE 0
|
|
26 #define ME_NOTEON 1
|
|
27 #define ME_NOTEOFF 2
|
|
28 #define ME_KEYPRESSURE 3
|
|
29 #define ME_MAINVOLUME 4
|
|
30 #define ME_PAN 5
|
|
31 #define ME_SUSTAIN 6
|
|
32 #define ME_EXPRESSION 7
|
|
33 #define ME_PITCHWHEEL 8
|
|
34 #define ME_PROGRAM 9
|
|
35 #define ME_TEMPO 10
|
|
36 #define ME_PITCH_SENS 11
|
|
37
|
|
38 #define ME_ALL_SOUNDS_OFF 12
|
|
39 #define ME_RESET_CONTROLLERS 13
|
|
40 #define ME_ALL_NOTES_OFF 14
|
|
41 #define ME_TONE_BANK 15
|
|
42
|
|
43 #define ME_LYRIC 16
|
|
44
|
|
45 #define ME_EOT 99
|
|
46
|
|
47 /* Causes the instrument's default panning to be used. */
|
|
48 #define NO_PANNING -1
|
|
49
|
|
50 /* Voice status options: */
|
|
51 #define VOICE_FREE 0
|
|
52 #define VOICE_ON 1
|
|
53 #define VOICE_SUSTAINED 2
|
|
54 #define VOICE_OFF 3
|
|
55 #define VOICE_DIE 4
|
|
56
|
|
57 /* Voice panned options: */
|
|
58 #define PANNED_MYSTERY 0
|
|
59 #define PANNED_LEFT 1
|
|
60 #define PANNED_RIGHT 2
|
|
61 #define PANNED_CENTER 3
|
|
62 /* Anything but PANNED_MYSTERY only uses the left volume */
|
|
63
|
|
64 #define ISDRUMCHANNEL(s, c) (((s)->drumchannels & (1<<(c))))
|