Mercurial > hg > btrack
diff src/BTrack.cpp @ 23:92ee4ace9d46 develop
Did more commenting. Added documentation.
author | Adam <adamstark.uk@gmail.com> |
---|---|
date | Sat, 25 Jan 2014 18:17:51 +0000 |
parents | a8e3e95d14e4 |
children | e4d5f045064d |
line wrap: on
line diff
--- a/src/BTrack.cpp Fri Jan 24 21:45:55 2014 +0000 +++ b/src/BTrack.cpp Sat Jan 25 18:17:51 2014 +0000 @@ -509,7 +509,7 @@ } //======================================================================= -void BTrack::calculateBalancedACF(double *df_thresh) +void BTrack::calculateBalancedACF(double *onsetDetectionFunction) { int l, n = 0; double sum, tmp; @@ -522,7 +522,7 @@ // for n samples from 0 - (512-lag) for (n = 0;n < (512-l);n++) { - tmp = df_thresh[n] * df_thresh[n+l]; // multiply current sample n by sample (n+l) + tmp = onsetDetectionFunction[n] * onsetDetectionFunction[n+l]; // multiply current sample n by sample (n+l) sum = sum + tmp; // add to sum }