diff src/testApp.cpp @ 16:680ba08e9925

Auto synchroniser added using the elastique~ object in max
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Mon, 06 Feb 2012 12:18:40 +0000
parents 780def3a1f36
children 4f6006cac9de
line wrap: on
line diff
--- a/src/testApp.cpp	Sun Feb 05 22:08:50 2012 +0000
+++ b/src/testApp.cpp	Mon Feb 06 12:18:40 2012 +0000
@@ -28,8 +28,7 @@
 	ofSetFrameRate(30);
 
 	
-	
-	eventMatcher.recordedTracks.loadTestAudio();
+	eventMatcher.loadAudioFiles();
 	
 	eventMatcher.setWindowDimensions();
 	//audioFilePlayer.loadAudioFile(infilename);
@@ -92,6 +91,12 @@
 			eventMatcher.stopPlaying();
 		}
 		
+		if ( m.getAddress() == "/accompanimentRatio" ){
+			double time = m.getArgAsFloat(0);
+			double ratio = m.getArgAsFloat(1);
+			eventMatcher.synchroniser.setPlayingRatio(ratio, time);
+		}
+		
 	}
 }