From a63d88dc781f3ab6ea12bddd5a45fd2fcadb12a5 Mon Sep 17 00:00:00 2001 From: oparviai Date: Thu, 30 Aug 2012 19:53:44 +0000 Subject: [PATCH] Adjustments in beat detection --- include/BPMDetect.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/include/BPMDetect.h b/include/BPMDetect.h index c5989cf..848a12b 100644 --- a/include/BPMDetect.h +++ b/include/BPMDetect.h @@ -83,15 +83,6 @@ protected: /// RMS volume sliding average approximation level accumulator double RMSVolumeAccu; - /// Level below which to cut off signals - double cutCoeff; - - /// Accumulator for accounting what proportion of samples exceed cutCoeff level - double aboveCutAccu; - - /// Accumulator for total samples to calculate proportion of samples that exceed cutCoeff level - double totalAccu; - /// Sample average counter. int decimateCount; @@ -137,6 +128,9 @@ protected: int numsamples ///< Number of samples in buffer ); + /// remove constant bias from xcorr data + void removeBias(); + public: /// Constructor. BPMDetect(int numChannels, ///< Number of channels in sample data.