This repository was archived by the owner on May 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrums.h
More file actions
73 lines (58 loc) · 1.48 KB
/
drums.h
File metadata and controls
73 lines (58 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* Drum Kit for Arduino, based on VS1053 DSP
* Copyright 2013, James Lyden <james@lyden.org>
* This code is licensed under the terms of the GNU General Public License.
* See COPYING, or refer to http://www.gnu.org/licenses, for further details.
*
* drums.h contains the mapping from MIDI note to drum name, as well as a
* number of drum name macros to map data into structures
*/
#ifndef drums_h
#define drums_h
// Drum name to MIDI note
#define PLAY_BASS 35
#define PLAY_SNARE 38
#define PLAY_RIMSHOT 40
#define PLAY_HIHAT_C 42
#define PLAY_HIHAT_O 46
#define PLAY_HIHAT_P 44
#define PLAY_CRASH 49
#define PLAY_RIDE 51
#define PLAY_SPLASH 55
#define PLAY_TOM_LO 45
#define PLAY_TOM_LM 47
#define PLAY_TOM_HM 48
#define PLAY_TOM_HI 50
#define PLAY_TOM_F_LO 41
#define PLAY_TOM_F_HI 43
// Drum indexing/channel assignment
#define BASS 0
#define SNARE 1
#define RIMSHOT 2
#define HIHAT 4
#define HIHAT_P 5
#define CRASH 7
#define RIDE 8
#define SPLASH 9
#define TOM_LO 10
#define TOM_LM 11
#define TOM_HM 12
#define TOM_HI 13
#define TOM_F_LO 14
#define TOM_F_HI 15
#define DRUM_CHANNELS 16
// Drum sensors
#define SENSOR_BASS 10
#define SENSOR_SNARE 3
#define SENSOR_RIMSHOT -1
#define SENSOR_HIHAT 2
#define SENSOR_HIHAT_P 11
#define SENSOR_CRASH -1
#define SENSOR_RIDE -1
#define SENSOR_SPLASH -1
#define SENSOR_TOM_LO 1
#define SENSOR_TOM_LM -1
#define SENSOR_TOM_HM 0
#define SENSOR_TOM_HI -1
#define SENSOR_TOM_F_LO -1
#define SENSOR_TOM_F_HI -1
#endif // drums_h