# HG changeset patch # User Chris Cannam # Date 1399371428 -3600 # Node ID f3bf6503e6c6fab3c07bf7b7a57bb3ce4d80b03f # Parent 78a7bf24701624447e17a3add30a8d3835cdd86e Remove debug printouts diff -r 78a7bf247016 -r f3bf6503e6c6 src/Silvet.cpp --- a/src/Silvet.cpp Tue May 06 11:13:25 2014 +0100 +++ b/src/Silvet.cpp Tue May 06 11:17:08 2014 +0100 @@ -339,7 +339,7 @@ Grid cqout = m_cq->process(data); FeatureSet fs = transcribe(cqout); -/* + for (int i = 0; i < (int)cqout.size(); ++i) { Feature f; for (int j = 0; j < (int)cqout[i].size(); ++j) { @@ -347,7 +347,7 @@ } fs[m_cqOutputNo].push_back(f); } -*/ + return fs; } @@ -356,7 +356,7 @@ { Grid cqout = m_cq->getRemainingBlocks(); FeatureSet fs = transcribe(cqout); -/* + for (int i = 0; i < (int)cqout.size(); ++i) { Feature f; for (int j = 0; j < (int)cqout[i].size(); ++j) { @@ -364,7 +364,7 @@ } fs[m_cqOutputNo].push_back(f); } -*/ + return fs; } @@ -374,7 +374,7 @@ Grid filtered = preProcess(cqout); FeatureSet fs; -/* + for (int i = 0; i < (int)filtered.size(); ++i) { Feature f; for (int j = 0; j < processingHeight; ++j) { @@ -382,7 +382,6 @@ } fs[m_fcqOutputNo].push_back(f); } -*/ int width = filtered.size(); @@ -527,7 +526,7 @@ while (int(active.size()) < polyphony) { --si; if (si->first < threshold) break; - cerr << si->second << " : " << si->first << endl; +// cerr << si->second << " : " << si->first << endl; active[si->second] = si->first; if (si == strengths.begin()) break; } @@ -588,7 +587,7 @@ int velocity = maxStrength * 2; if (velocity > 127) velocity = 127; - cerr << "Found a genuine note, starting at " << columnDuration * start << " with duration " << columnDuration * duration << endl; +// cerr << "Found a genuine note, starting at " << columnDuration * start << " with duration " << columnDuration * duration << endl; Feature nf; nf.hasTimestamp = true;