diff src/Silvet.cpp @ 187:1697457458b7 noteagent

Don't retain returned hypotheses -- to avoid having to test whether we've seen them before
author Chris Cannam
date Wed, 28 May 2014 15:16:00 +0100
parents 9d70d687e4eb
children 462b165c8c0f
line wrap: on
line diff
--- a/src/Silvet.cpp	Wed May 28 15:05:43 2014 +0100
+++ b/src/Silvet.cpp	Wed May 28 15:16:00 2014 +0100
@@ -696,7 +696,7 @@
         return noteFeatures;
     }
 
-    std::set<NoteHypothesis> hh = feeder->getAcceptedHypotheses();
+    std::set<NoteHypothesis> hh = feeder->retrieveAcceptedHypotheses();
 
     //!!! inefficient
     for (std::set<NoteHypothesis>::const_iterator hi = hh.begin();
@@ -704,12 +704,6 @@
 
         NoteHypothesis h(*hi);
 
-        if (m_emitted.find(h) != m_emitted.end()) {
-            continue; // already returned this one
-        }
-
-        m_emitted.insert(h);
-
         NoteHypothesis::Note n = h.getAveragedNote();
 
         int velocity = n.confidence * 127;