Adjustments in beat detection

This commit is contained in:
oparviai 2012-08-30 19:53:44 +00:00
parent 0462e450a6
commit a63d88dc78

View File

@ -83,15 +83,6 @@ protected:
/// RMS volume sliding average approximation level accumulator /// RMS volume sliding average approximation level accumulator
double RMSVolumeAccu; 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. /// Sample average counter.
int decimateCount; int decimateCount;
@ -137,6 +128,9 @@ protected:
int numsamples ///< Number of samples in buffer int numsamples ///< Number of samples in buffer
); );
/// remove constant bias from xcorr data
void removeBias();
public: public:
/// Constructor. /// Constructor.
BPMDetect(int numChannels, ///< Number of channels in sample data. BPMDetect(int numChannels, ///< Number of channels in sample data.