changeset 832:a1bb2989013d

Merge
author Chris Cannam <chris.cannam@eecs.qmul.ac.uk>
date Wed, 24 Jul 2013 18:24:55 +0100
parents 12aff5a181bc (current diff) 2f85f0fbf7ab (diff)
children fcee7e040ab4
files
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/Labeller.h	Wed Jul 24 18:12:57 2013 +0100
+++ b/data/model/Labeller.h	Wed Jul 24 18:24:55 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 ||