diff dsp/tonal/TonalEstimator.h @ 299:5f2c9119a94a

* A few fixes prompted by vamp-plugin-tester
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 08 Jun 2009 12:30:20 +0000
parents c88fb48790d9
children e5907ae6de17
line wrap: on
line diff
--- a/dsp/tonal/TonalEstimator.h	Fri Jun 05 15:12:39 2009 +0000
+++ b/dsp/tonal/TonalEstimator.h	Mon Jun 08 12:30:20 2009 +0000
@@ -44,6 +44,12 @@
 		for (size_t i = 0; i < 12; dSum > 0.0000001?((*this)[i] /= dSum):(*this)[i]=0.0, i++) ;
 
 	}
+
+    void clear()
+    {
+        for (size_t i = 0; i < 12; ++i) (*this)[i] = 0.0;
+    }
+        
 	
 };