diff src/testApp.cpp @ 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 6f6461b0d07f
children 5274e3b5479d
line wrap: on
line diff
--- a/src/testApp.cpp	Thu Jun 14 23:12:36 2012 +0100
+++ b/src/testApp.cpp	Tue Jul 17 22:12:20 2012 +0100
@@ -31,6 +31,9 @@
 	eventMatcher.loadAudioFiles();
 	
 	eventMatcher.setWindowDimensions();
+	
+	outputWriter.openFile("../../../data/output.txt");
+	
 	//audioFilePlayer.loadAudioFile(infilename);
 }
 
@@ -182,7 +185,7 @@
 		eventMatcher.addMarkerNow();
 	}
 	
-	if (key == 'c'){
+	if (key == 'f'){
 		eventMatcher.deleteMarkers();
 	}
 	if (key == 'd'){
@@ -238,6 +241,10 @@
 	
 	if (key == 'k')
 		eventMatcher.drawLikelihoods = !eventMatcher.drawLikelihoods;
+	
+	if (key == 'g'){
+		eventMatcher.writeAllDistributions();
+	}
 
 }