* Better reporting of soft peaks (time sync points)

This commit is contained in:
Chris Cannam
2007-11-07 22:34:30 +00:00
parent d2f4833a0a
commit 5863e9070b
7 changed files with 61 additions and 14 deletions

View File

@@ -769,6 +769,20 @@ RubberBandStretcher::Impl::getLockCurve() const
}
}
vector<int>
RubberBandStretcher::Impl::getExactTimePoints() const
{
std::vector<int> points;
if (!m_realtime) {
std::vector<StretchCalculator::Peak> peaks =
m_stretchCalculator->getLastCalculatedPeaks();
for (size_t i = 0; i < peaks.size(); ++i) {
points.push_back(peaks[i].frame);
}
}
return points;
}
void
RubberBandStretcher::Impl::calculateStretch()
{