# HG changeset patch # User matthiasm # Date 1422291884 0 # Node ID 282a28b641eb33b2665e205bd96cdd9a96978e0e # Parent d76426bcac29845897a45aadb91eaf52826f59eb not sure what I did there diff -r d76426bcac29 -r 282a28b641eb LocalCandidatePYIN.cpp --- a/LocalCandidatePYIN.cpp Mon Jan 26 17:03:18 2015 +0000 +++ b/LocalCandidatePYIN.cpp Mon Jan 26 17:04:44 2015 +0000 @@ -357,6 +357,7 @@ boost::math::normal normalDist(0, 8); // semitones sd float maxNormalDist = boost::math::pdf(normalDist, 0); + // Viterbi-decode multiple times with different frequencies emphasised for (size_t iCandidate = 0; iCandidate < m_nCandidate; ++iCandidate) { pitchTracks.push_back(vector(nFrame)); @@ -430,10 +431,11 @@ for (size_t iFrame = 0; iFrame < nFrame; ++iFrame) outputFrequencies.push_back(vector()); int actualCandidateNumber = 0; - for (size_t iCandidate = 0; iCandidate < m_nCandidate; ++iCandidate) { + for (size_t iCandidate = 0; iCandidate < m_nCandidate; ++iCandidate) + { bool isDuplicate = false; for (size_t i = 0; i < duplicates.size(); ++i) { - // std::cerr << duplicates[i] << std::endl; + if (duplicates[i] == iCandidate) { isDuplicate = true; break;