diff Induction.h @ 12:59520cd6abac

Debug output, and some actual debugging... getting there.
author Chris Cannam
date Thu, 06 Oct 2011 15:21:03 +0100
parents 4f6626f9ffac
children 887c629502a9
line wrap: on
line diff
--- a/Induction.h	Fri Sep 30 23:11:14 2011 +0100
+++ b/Induction.h	Thu Oct 06 15:21:03 2011 +0100
@@ -22,6 +22,10 @@
 
 #include <vector>
 
+#ifdef DEBUG_BEATROOT
+#include <iostream>
+#endif
+
 using std::vector;
 
 /** Performs tempo induction by finding clusters of similar
@@ -227,6 +231,9 @@
 		a.push_back(Agent(beat));
 	    }
 	}
+#ifdef DEBUG_BEATROOT
+        std::cerr << "Induction complete, returning " << a.size() << " agent(s)" << std::endl;
+#endif
 	return a;
     } // beatInduction()