       }
     }
 
-    int tap2Pulses = _tap2Pulses;
+    long tap2Pulses = _tap2Pulses;
     if(lastTap2Pulses != 0 && lastTap2Pulses == tap2Pulses) {
       // complete
       _tap2Pulses = 0;

volatile int _tap1Pulses = 0;
volatile int _tap2Pulses = 0;
const int _startThreshold = 50;

// prep - initialize serial (TX on pin 1) and wire up the interrupts for pulses from the taps (pins 2 and 3)
void setup() {

    delay(1000);
  }
}
