diff data/model/Labeller.h @ 841:226733f3cf3f tonioni

Merge from default branch
author Chris Cannam
date Fri, 22 Nov 2013 10:37:28 +0000
parents 2f85f0fbf7ab
children 59e7fe1b1003
line wrap: on
line diff
--- a/data/model/Labeller.h	Wed Jul 17 16:01:28 2013 +0100
+++ b/data/model/Labeller.h	Fri Nov 22 10:37:28 2013 +0000
@@ -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 ||