# HG changeset patch # User Chris Cannam # Date 1401285943 -3600 # Node ID 9d70d687e4ebc0f4ee44beab6be22023bccde3d2 # Parent 78212f764251b42adedb66fba5a41ad3eaac5334 Tidy column counting diff -r 78212f764251 -r 9d70d687e4eb src/Silvet.cpp --- a/src/Silvet.cpp Wed May 28 14:56:01 2014 +0100 +++ b/src/Silvet.cpp Wed May 28 15:05:43 2014 +0100 @@ -534,18 +534,20 @@ for (int j = 0; j < pack.templateNoteCount; ++j) { m_postFilter[j]->push(0.0); } - continue; + } else { + + postProcess(localPitches[i], localBestShifts[i], + wantShifts, shiftCount); + + FeatureList noteFeatures = obtainNotes(); + + for (FeatureList::const_iterator fi = noteFeatures.begin(); + fi != noteFeatures.end(); ++fi) { + fs[m_notesOutputNo].push_back(*fi); + } } - postProcess(localPitches[i], localBestShifts[i], - wantShifts, shiftCount); - - FeatureList noteFeatures = obtainNotes(); - - for (FeatureList::const_iterator fi = noteFeatures.begin(); - fi != noteFeatures.end(); ++fi) { - fs[m_notesOutputNo].push_back(*fi); - } + ++m_columnCountOut; } return fs; @@ -677,8 +679,6 @@ AgentHypothesis::Observation obs(freq, t, confidence); m_agentFeeder->feed(obs); } - - m_columnCountOut ++; } Vamp::Plugin::FeatureList