diff src/testApp.cpp @ 2:179c09199b3c

bayesian vector now adding gaussians for kick onsets
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 31 Jan 2012 21:34:19 +0000
parents 852173ca8365
children 5e188c0035b6
line wrap: on
line diff
--- a/src/testApp.cpp	Tue Jan 31 17:35:30 2012 +0000
+++ b/src/testApp.cpp	Tue Jan 31 21:34:19 2012 +0000
@@ -99,6 +99,20 @@
 			printf("AUBIO PITCH RECEIVED %f at time %i\n", pitchIn, timeIn);
 			eventMatcher.newPitchEvent(pitchIn, timeIn);
 		}
+		
+		if ( m.getAddress() == "/kick" ){
+		//	float pitchIn = m.getArgAsFloat(0); 
+			double timeIn = m.getArgAsInt32(0); 
+			printf("kick RECEIVED at time %f\n", timeIn);
+			eventMatcher.newKickEvent(timeIn);
+		}
+		
+		if ( m.getAddress() == "/snare" ){
+			//	float pitchIn = m.getArgAsFloat(0); 
+			double timeIn = m.getArgAsInt32(0); 
+			printf("snare RECEIVED at time %f\n", timeIn);
+			eventMatcher.newSnareEvent(timeIn);
+		}
 	}
 }