Mercurial > hg > svcore
diff data/model/AlignmentModel.cpp @ 1651:7a56bb85030f single-point
Introduce deferred notifier, + start converting sparse time-value model (perhaps we should rename it too)
author | Chris Cannam |
---|---|
date | Mon, 18 Mar 2019 14:17:20 +0000 |
parents | 70e172e6cc59 |
children | 628ffbb05856 |
line wrap: on
line diff
--- a/data/model/AlignmentModel.cpp Mon Mar 18 09:37:46 2019 +0000 +++ b/data/model/AlignmentModel.cpp Mon Mar 18 14:17:20 2019 +0000 @@ -238,12 +238,11 @@ m_path->clear(); - SparseTimeValueModel::PointList points = m_rawPath->getPoints(); - - for (SparseTimeValueModel::PointList::const_iterator i = points.begin(); - i != points.end(); ++i) { - sv_frame_t frame = i->frame; - double value = i->value; + EventVector points = m_rawPath->getAllEvents(); + + for (const auto &p: points) { + sv_frame_t frame = p.getFrame(); + double value = p.getValue(); sv_frame_t rframe = lrint(value * m_aligned->getSampleRate()); m_path->addPoint(PathPoint(frame, rframe)); }