Mercurial > hg > silvet
diff src/Silvet.cpp @ 62:3e7e3c610fae
Test code
author | Chris Cannam |
---|---|
date | Mon, 28 Apr 2014 13:01:30 +0100 |
parents | d00a6f6c7fc9 |
children | 9c7e6086192d |
line wrap: on
line diff
--- a/src/Silvet.cpp Mon Apr 28 12:45:06 2014 +0100 +++ b/src/Silvet.cpp Mon Apr 28 13:01:30 2014 +0100 @@ -576,7 +576,7 @@ ++start; int duration = width - start; - cerr << "duration " << duration << " for just-ended note " << note << endl; +// cerr << "duration " << duration << " for just-ended note " << note << endl; if (duration < durationThreshold) { // spurious continue; @@ -585,6 +585,8 @@ int velocity = maxStrength * 2; if (velocity > 127) velocity = 127; + cerr << "Found a genuine note, starting at " << columnDuration * start << " with duration " << columnDuration * duration << endl; + Feature nf; nf.hasTimestamp = true; nf.timestamp = RealTime::fromSeconds(columnDuration * start); @@ -598,7 +600,7 @@ m_pianoRoll.push_back(active); - cerr << "returning " << noteFeatures.size() << " complete notes" << endl; +// cerr << "returning " << noteFeatures.size() << " complete note(s) " << endl; return noteFeatures; }