           float value = acc / ACC_SIZE;
           acc = 0;
           numInAcc = 0;
-          minwave = min(value, minwave);
-          maxwave = max(value, maxwave);
+          //minwave = min(value, minwave);
+          //maxwave = max(value, maxwave);
           addToFFT(value);
       }
       // minwave = min(tempBuffer[i], minwave);

	}
}

float normalize_rads(float angle_rad) {
    if (angle_rad < 0) {
        angle_rad += 2 * PI;

  // KickFFT<int32_t>::fft(fs, 0, 4, FFT_SIZE, fftBuffer, mag, startIndex, endIndex);
  fft_phase(fs, 0, 4, FFT_SIZE, fftBuffer, mag, phase, startIndex, endIndex);
  updatePhase(mag, phase, startIndex, endIndex);
  //float hz = fs * _phaseRateAverage / 2 / PI;
  //Serial.print("BPM: "); Serial.println(hz * 60);
  Serial.print("radsPerUpdate: "); Serial.println(_phaseRateAverage);


  // each sample changes the phase _phaseRateAverage rads
