diff DrumTimingLoader_OF/src/testApp.cpp @ 2:50ba55abea8c

updating files to newer version
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sat, 23 Nov 2013 15:49:27 +0000
parents 82352cfc0b23
children
line wrap: on
line diff
--- a/DrumTimingLoader_OF/src/testApp.cpp	Sat Nov 23 15:44:47 2013 +0000
+++ b/DrumTimingLoader_OF/src/testApp.cpp	Sat Nov 23 15:49:27 2013 +0000
@@ -7,7 +7,7 @@
 
 //--------------------------------------------------------------
 void testApp::update(){
-
+	drumTimer.update();//recordedTracks.updatePosition();
 }
 
 //--------------------------------------------------------------
@@ -27,7 +27,21 @@
 	if (key == OF_KEY_DOWN){
 		drumTimer.recordedTracks.zoomIn();
 	}
+
+	if (key == OF_KEY_RIGHT){
+		drumTimer.recordedTracks.drumTimingAnalyser.widenDrawWindow();
+		
+	}
 	
+	if (key == OF_KEY_LEFT){
+		drumTimer.recordedTracks.drumTimingAnalyser.narrowDrawWindow();
+	}
+	
+
+	if (key == ' '){
+		drumTimer.recordedTracks.togglePlay();
+	}
+			
 }
 
 //--------------------------------------------------------------