51 BTrack(
int hopSize_,
int frameSize_);
126 void initialise(
int hopSize_,
int frameSize_);
131 void setHopSize(
int hopSize_);
134 void resampleOnsetDetectionFunction();
139 void updateCumulativeScore(
double odfSample);
145 void calculateTempo();
152 void adaptiveThreshold(
double *x,
int N);
160 double calculateMeanOfArray(
double *array,
int startIndex,
int endIndex);
166 void normaliseArray(
double *array,
int N);
171 void calculateBalancedACF(
double *onsetDetectionFunction);
174 void calculateOutputOfCombFilterBank();
184 std::vector<double> onsetDF;
185 std::vector<double> cumulativeScore;
187 double resampledOnsetDF[512];
191 double weightingVector[128];
193 double combFilterBankOutput[128];
194 double tempoObservationVector[41];
197 double prevDelta[41];
198 double prevDeltaFixed[41];
200 double tempoTransitionMatrix[41][41];
215 double estimatedTempo;
217 double latestCumulativeScoreValue;
219 double tempoToLagFactor;
227 int onsetDFBufferSize;