diff src/BTrack.cpp @ 60:bf256abf1dd4

Did more commenting. Added documentation.
author Adam Stark <adamstark@users.noreply.github.com>
date Sat, 25 Jan 2014 18:17:51 +0000
parents ba3fc238ccad
children 1395895f6cdf
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
 		}