changeset 830:2f85f0fbf7ab

Add resetCounters
author Chris Cannam
date Wed, 24 Jul 2013 12:01:43 +0100
parents 420ade1cb6da
children a1bb2989013d
files data/model/Labeller.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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 ||