# HG changeset patch # User Adam Stark # Date 1505174453 -3600 # Node ID 6f5ba0250afd5ebe216833dc11e25b461753f75c # Parent 3647be01027b3393f06230ba91b349eb7eddf0df Fixed some comments diff -r 3647be01027b -r 6f5ba0250afd src/BTrack.cpp --- a/src/BTrack.cpp Tue Sep 12 00:53:33 2017 +0100 +++ b/src/BTrack.cpp Tue Sep 12 01:00:53 2017 +0100 @@ -671,12 +671,12 @@ createLogGaussianTransitionWeighting (logGaussianTransitionWeighting, pastWindowSize, beatPeriod); // Calculate the future cumulative score, by shifting the log Gaussian transition weighting from its - // start position of [-2 beat periods, 0.5 beat periods] forwards over the size of the beat + // start position of [-2 beat periods, - 0.5 beat periods] forwards over the size of the beat // expectation window, calculating a new cumulative score where the onset detection function sample // is zero. This uses the "momentum" of the function to generate itself into the future. for (int i = onsetDFBufferSize; i < (onsetDFBufferSize + beatExpectationWindowSize); i++) { - // note here that we pass 0.0 in for the onset detection function value and 1.0 for the alpha weighting factor + // note here that we pass 0.0 in for the onset detection function sample and 1.0 for the alpha weighting factor // see equation 3.4 and page 60 - 62 of Adam Stark's PhD thesis for details futureCumulativeScore[i] = calculateNewCumulativeScoreValue (futureCumulativeScore, logGaussianTransitionWeighting, startIndex, endIndex, 0.0, 1.0);