13
0

libtemporal: TempoMap::apply_with_metrics() needs to use *all* metrics (inc. MusicTimePoints)

This commit is contained in:
Paul Davis 2021-02-10 22:29:15 -07:00
parent a49ed5505e
commit 877e896caf

View File

@ -709,12 +709,9 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible
template<class T> void apply_with_metrics (T& obj, void (T::*method)(Metrics const &)) {
Metrics metrics;
for (Tempos::iterator t = _tempos.begin(); t != _tempos.end(); ++t) {
for (Points::iterator t = _points.begin(); t != _points.end(); ++t) {
metrics.push_back (&*t);
}
for (Meters::iterator m = _meters.begin(); m != _meters.end(); ++m) {
metrics.push_back (&*m);
}
(obj.*method)(metrics);
}