diff newOFsrc/BayesDrumTracker.h @ 10:d880f7f29fbe

better output of data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 07 Mar 2012 16:47:10 +0000
parents c49a8f33afab
children 23ff520d28ff
line wrap: on
line diff
--- a/newOFsrc/BayesDrumTracker.h	Tue Mar 06 17:20:18 2012 +0000
+++ b/newOFsrc/BayesDrumTracker.h	Wed Mar 07 16:47:10 2012 +0000
@@ -15,7 +15,7 @@
 
 #ifndef	_BAYES_DRUM_TRACKER
 #define _BAYES_DRUM_TRACKER
-#define ARRAY_SIZE 240	
+//#define ARRAY_SIZE 240	
 //#define BAYES_ARRAY_SIZE 240
 
 	public:
@@ -59,9 +59,11 @@
 	
 	double setBeatToNowTime;
 	
-	float prior [ARRAY_SIZE];
-	float posterior [ARRAY_SIZE];
-	float likelihood [ARRAY_SIZE];
+	static const int arraySize = 240;
+	
+	float prior [arraySize];
+	float posterior [arraySize];
+	float likelihood [arraySize];
 	float likelihoodMean, likelihoodStdDev, likelihoodNoise, stepSize;
 	float maximumEstimate;	
 	float maximumTest, posteriorDecayRate, maximumIndex;
@@ -70,7 +72,7 @@
 	bool paused;
 	double maxPhase, maxTempo;
 	
-	float tmpArray[ARRAY_SIZE];
+	float tmpArray[arraySize];
 	
 	float correctionFactor;
 	float beatCorrection;