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
139141void loop ()
0 commit comments