diff src/testApp.cpp @ 22:9860abc92a30

follower has confidence measure now just using best match. Difficulty in visualising the speed likelihood fn
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 30 Nov 2011 11:48:35 +0000
parents 9e972948d654
children 032edf186a68
line wrap: on
line diff
--- a/src/testApp.cpp	Sun Nov 27 21:56:19 2011 +0000
+++ b/src/testApp.cpp	Wed Nov 30 11:48:35 2011 +0000
@@ -87,16 +87,17 @@
 void testApp::draw(){
 
 	midiEvents.drawFile();
-	
+	ofSetColor(0,255,0);
+	midiEvents.bayesStruct.tmpPrior.drawVector(0, 200);
 }
 
 //--------------------------------------------------------------
 void testApp::keyPressed(int key){
 
 	
-	if (key == ' '){
-		startPlaying();
-	}
+//	if (key == ' '){
+//		startPlaying();
+//	}
 	
 	if (key == 'c'){
 		double timenow = ofGetElapsedTimeMillis();
@@ -151,10 +152,11 @@
 		if (getFilenameFromDialogBox(filePtr)){
 			printf("Midifile: Loaded name okay :\n'%s' \n", midiFileName.c_str());	
 			cannamMainFunction();
-			
 		}
+	}
+
 	
-	}
+	
 }
 
 //--------------------------------------------------------------