Skip to content

Commit

Permalink
make clear that shrinking value in number_pads4 is the only thing to …
Browse files Browse the repository at this point in the history
…do to have less number of inputs for Edrumulus
  • Loading branch information
corrados committed Nov 1, 2023
1 parent e54f927 commit 65b858e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edrumulus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ Serial.println ( serial_print );
for ( int j = 0; j < number_inputs[i]; j++ )
{
const float& cur_dc_offset = dc_offset[i][j];
//Serial.println ( cur_dc_offset ); // TEST for plotting all DC offsets
//Serial.println ( String ( i ) + ", " + String ( cur_dc_offset ) ); // TEST for plotting all DC offsets
if ( ( cur_dc_offset < dc_offset_min_limit ) || ( cur_dc_offset > dc_offset_max_limit ) )
{
status_is_error = true;
Expand Down
5 changes: 4 additions & 1 deletion edrumulus.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
// analog pins setup: snare | kick | hi-hat | hi-hat-ctrl | crash | tom1 | ride | tom2 | tom3
static int analog_pins4[] = { 36, 33, 32, 25, 34, 39, 27, 12, 15 };
static int analog_pins_rimshot4[] = { 35, -1, 26, -1, 14, -1, 13, -1, -1 };
const int number_pads4 = sizeof ( analog_pins4 ) / sizeof ( int );

// if you want to use less number of pads, simply adjust number_pads4 value
//const int number_pads4 = sizeof ( analog_pins4 ) / sizeof ( int ); // use all inputs defined in analog_pins4
const int number_pads4 = 8; // e.g., do not use tom3 and shrink number of pads from 9 to 8 in this example


#include "edrumulus.h"
Expand Down

0 comments on commit 65b858e

Please sign in to comment.