Skip to content

Commit aa6a41a

Browse files
authored
Merge pull request #176 from corrados/crash2_support
Crash2 support
2 parents 6ae4508 + 3bdb56f commit aa6a41a

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

edrumulus.ino

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
// For older prototypes or custom implementations, simply change the GPIO numbers in the table below
2222
// to match your hardware (note that the GPIO assignment of Prototype 2 is the same as Prototype 4).
2323
// clang-format off
24-
// analog pins setup: snare | kick | hi-hat | hi-hat-ctrl | crash | tom1 | ride | tom2 | tom3
25-
static int analog_pins4[] = { 36, 33, 32, 25, 34, 39, 27, 12, 15 };
26-
static int analog_pins_rimshot4[] = { 35, -1, 26, -1, 14, -1, 13, -1, -1 };
24+
// analog pins setup: snare | kick | hi-hat | hi-hat-ctrl | crash | tom1 | ride | tom2 | tom3 | crash2
25+
static int analog_pins4[] = { 36, 33, 32, 25, 34, 39, 27, 12, 15, 4 };
26+
static int analog_pins_rimshot4[] = { 35, -1, 26, -1, 14, -1, 13, -1, -1, 0 };
2727
// clang-format on
2828

2929
// if you want to use less number of pads, simply adjust number_pads4 value
30-
// const int number_pads4 = sizeof ( analog_pins4 ) / sizeof ( int ); // example: use all inputs defined in analog_pins4
31-
const int number_pads4 = 8; // example: do not use tom3 and shrink number of pads from 9 to 8
30+
// const int number_pads4 = sizeof(analog_pins4) / sizeof(int); // example: use all inputs defined in analog_pins4
31+
const int number_pads4 = 9; // example: do not use crash2 and shrink number of pads from 10 to 9
3232
// const int number_pads4 = 1; // example: just one single pad
3333

3434
#include "edrumulus.h"
@@ -123,6 +123,7 @@ void preset_settings()
123123
edrumulus.set_midi_notes(6, 51, 53 /*59*/); // ride (edge: 59, bell: 53)
124124
edrumulus.set_midi_notes(7, 45, 47); // tom 2
125125
edrumulus.set_midi_notes(8, 43, 58); // tom 3
126+
edrumulus.set_midi_notes(9, 57, 52); // crash 2
126127

127128
// default drum kit setup
128129
edrumulus.set_pad_type(0, Pad::PD8); // snare
@@ -134,6 +135,7 @@ void preset_settings()
134135
edrumulus.set_pad_type(6, Pad::CY8); // ride
135136
edrumulus.set_pad_type(7, Pad::TP80); // tom 2
136137
edrumulus.set_pad_type(8, Pad::TP80); // tom 3
138+
edrumulus.set_pad_type(9, Pad::CY6); // crash 2
137139
}
138140

139141
void loop()

tools/edrumulus_gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"KD120 Roland Mesh Kick Pad":16, "KD8 Roland Kick Pad":14, \
6262
"KD7 Roland Kick Pad":6, "KT10 Roland Kick Pedal":20, "MPS-750X Millenium Kick Pad":23, \
6363
"FD8 Roland Hi-Hat Pedal":3, "VH12CTRL Roland Hi-Hat Pedal":5, "LEHHS12CCTRL Lemon Hi-Hat Pedal":27}
64-
pad_names = ["snare", "kick", "hi-hat", "ctrl", "crash", "tom1", "ride", "tom2", "tom3"]
64+
pad_names = ["snare", "kick", "hi-hat", "ctrl", "crash", "tom1", "ride", "tom2", "tom3", "crash2"]
6565
curve_types = ["LINEAR", "EXP1", "EXP2", "LOG1", "LOG2"]
6666
cmd_names = [ "type", "thresh", "sens", "pos thres", "pos sens", "rim thres", "mask"]
6767
cmd_val = [ 102, 103, 104, 105, 106, 107, 118]

tools/settings/trigger_settings.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,22 @@
169169
8,122,15
170170
8,120,0
171171
8,110,4
172+
9,102,8
173+
9,103,8
174+
9,104,6
175+
9,105,9
176+
9,106,14
177+
9,107,12
178+
9,118,6
179+
9,109,0
180+
9,111,1
181+
9,119,0
182+
9,114,0
183+
9,112,57
184+
9,113,52
185+
9,116,127
186+
9,117,127
187+
9,121,25
188+
9,122,15
189+
9,120,0
190+
9,110,4

0 commit comments

Comments
 (0)