diff BeatRootProcessor.h @ 23:633ec097fa56

Expose the processing parameters Simon suggests
author Chris Cannam
date Tue, 03 Sep 2013 17:32:09 +0100
parents 6afcb5edd7ab
children 3a5840de4d5f
line wrap: on
line diff
--- a/BeatRootProcessor.h	Wed Aug 28 16:50:40 2013 +0100
+++ b/BeatRootProcessor.h	Tue Sep 03 17:32:09 2013 +0100
@@ -81,6 +81,9 @@
 	
     /** The estimated onset times and their saliences. */	
     EventList onsetList;
+    
+    /** User-specifiable processing parameters. */
+    AgentParameters agentParameters;
 	
     /** Flag for suppressing all standard output messages except results. */
     static bool silent;
@@ -89,12 +92,14 @@
 
     /** Constructor: note that streams are not opened until the input
      *  file is set (see <code>setInputFile()</code>). */
-    BeatRootProcessor(float sr) :
-        sampleRate(sr) {
-        hopSize = 0;
-        fftSize = 0;
-        hopTime = 0.010;
-        fftTime = 0.04644;
+    BeatRootProcessor(float sr, AgentParameters parameters) :
+        sampleRate(sr),
+        hopSize(0),
+        fftSize(0),
+        hopTime(0.010),
+        fftTime(0.04644),
+        agentParameters(parameters)
+    {
         hopSize = lrint(sampleRate * hopTime);
         fftSize = lrint(pow(2, lrint( log(fftTime * sampleRate) / log(2))));
     } // constructor