Mercurial > hg > match-vamp
changeset 79:e8ab30f90e53 refactors
Ensure eventual durations are set on Finder
author | Chris Cannam |
---|---|
date | Wed, 19 Nov 2014 14:26:31 +0000 |
parents | 9be9182d4321 |
children | e48e27db6765 |
files | src/Finder.cpp src/MatchVampPlugin.cpp |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Finder.cpp Wed Nov 19 14:14:52 2014 +0000 +++ b/src/Finder.cpp Wed Nov 19 14:26:31 2014 +0000 @@ -163,8 +163,6 @@ int x = ex; int y = ey; - -// cerr << "before: x = " << x << ", y = " << y << endl; if (m_duration2 > 0 && m_duration2 < m_m->getOtherFrameCount()) { x = m_duration2 - 1; @@ -172,6 +170,8 @@ if (m_duration1 > 0 && m_duration1 < m_m->getFrameCount()) { y = m_duration1 - 1; } + +// cerr << "before: x = " << x << ", y = " << y << endl; if (!m_m->isAvailable(y, x)) { // Path did not pass through the expected end point --
--- a/src/MatchVampPlugin.cpp Wed Nov 19 14:14:52 2014 +0000 +++ b/src/MatchVampPlugin.cpp Wed Nov 19 14:26:31 2014 +0000 @@ -545,6 +545,7 @@ FeatureSet returnFeatures; Finder *finder = m_feeder->getFinder(); + finder->setDurations(m_lastFrameIn1, m_lastFrameIn2); std::vector<int> pathx; std::vector<int> pathy; int len = finder->retrievePath(m_smooth, pathx, pathy);