Mercurial > hg > btrack
diff src/BTrack.cpp @ 106:6f5ba0250afd
Fixed some comments
author | Adam Stark <adamstark.uk@gmail.com> |
---|---|
date | Tue, 12 Sep 2017 01:00:53 +0100 |
parents | 3647be01027b |
children | a6701b3f636f |
line wrap: on
line diff
--- 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);