diff src/AudioEventMatcher.h @ 52:e359b9bad811

Added exporting of image and text data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 17 Jul 2012 22:12:20 +0100
parents 93d21c20cfbc
children 5274e3b5479d
line wrap: on
line diff
--- a/src/AudioEventMatcher.h	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/AudioEventMatcher.h	Tue Jul 17 22:12:20 2012 +0100
@@ -25,6 +25,8 @@
 #include "TempoFollower.h"
 #include "MatchMarkers.h"
 
+#include "OutputDataWriter.h"
+
 static const int numberOfChannels = 4;
 
 class AudioEventMatcher{
@@ -76,6 +78,8 @@
 	double getChromaDotProductDistance(float* chromaOne, float* chromaTwo);
 	double getChromaEuclideanDistance(float* chromaOne, float* chromaTwo);
 	bool useChromaDotProduct;
+	float quantisedChromagramReceived[12];
+	void makeQuantisedChroma(float* chromaIn);
 	
 	BayesianArrayStructure bayesianStruct;//hold the probability distriubtions
 	
@@ -151,6 +155,10 @@
 	
 	MatchMarkers markedPoints;
 	double markerPlaybackPosition;
-
+	
+	OutputDataWriter testDistributionOutput;
+	void writeAllDistributions();
+	void writeDistribution(DynamicVector& distribution, std::string filename);
+	ofImage img;
 };
 #endif