diff data/model/Labeller.h @ 830:2f85f0fbf7ab

Add resetCounters
author Chris Cannam
date Wed, 24 Jul 2013 12:01:43 +0100
parents 6a96bff0bd59
children 59e7fe1b1003
line wrap: on
line diff
--- a/data/model/Labeller.h	Wed Jul 17 15:43:42 2013 +0100
+++ b/data/model/Labeller.h	Wed Jul 24 12:01:43 2013 +0100
@@ -134,6 +134,12 @@
 
     void setSampleRate(float rate) { m_rate = rate; }
 
+    void resetCounters() {
+        m_counter = 1;
+        m_counter2 = 1;
+        m_cycle = 4;
+    }
+
     void incrementCounter() {
         m_counter++;
         if (m_type == ValueFromCyclicalCounter ||