diff hackday/testApp.cpp @ 31:9a70d9abdc8b

examining the tempo speed process
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sun, 11 Dec 2011 17:19:34 +0000
parents be2e779d76b5
children f91b7b019350
line wrap: on
line diff
--- a/hackday/testApp.cpp	Wed Dec 07 13:04:59 2011 +0000
+++ b/hackday/testApp.cpp	Sun Dec 11 17:19:34 2011 +0000
@@ -62,7 +62,7 @@
 	screenHeight = ofGetHeight();
 	midiEvents.screenWidth = &screenWidth;
 	midiEvents.screenHeight = &screenHeight;
-	midiEvents.drawTempoMode = false;
+	midiEvents.drawTempoMode = true;
 	ofSetFrameRate(30);
 	
 	midiEvents.ticksPerScreen += 4000;
@@ -99,7 +99,7 @@
 					startPlaying();
 					printf("starting to PLAY!!!");
 				}
-				
+				printf("MIDI NOTE %i \n", newMidiOnPitch);
 				midiEvents.newNoteOnEvent(newMidiOnPitch, velocity, time);
 				noteInStream.newNoteCounted(newMidiOnPitch);
 			}
@@ -206,7 +206,7 @@
 	if (midiEvents.recordedNoteOnMatrix.size() > 0){
 	int ticks = midiEvents.recordedNoteOnMatrix[midiEvents.bestMatchIndex][0];
 	int pitch = midiEvents.recordedNoteOnMatrix[midiEvents.bestMatchIndex][1];
-	printf("sending to muse score %i, %i \n", ticks, pitch);
+//	printf("sending to muse score %i, %i \n", ticks, pitch);
 	sendNoteDataByOsc(pitch, ticks);
 	}
 	/*
@@ -496,8 +496,9 @@
 }
 
 void testApp::stopPlaying(){
-	midiEvents.printNoteCounter();
-	noteInStream.printTotalCount();
+	//midiEvents.printNoteCounter();
+	//noteInStream.printTotalCount();
+	
 	noteInStream.calculateTotalScore(midiEvents);