From 9a2ec93a746aa8a6bc27cf9395af47ce9f24e08c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 1 Jan 2021 18:30:00 -0700 Subject: [PATCH] libtemporal: fix bug with placement of new MeterPoint --- libs/temporal/tempo.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 5d4ee9e616..cfd37cfec6 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -1359,7 +1359,7 @@ TempoMap::set_meter (Meter const & m, timepos_t const & time) /* meter changes must be on bar */ - bbt = metric.bbt_at (beats); + bbt = metric.bbt_at (sc); bbt = metric.round_to_bar (bbt); /* compute beat position */ @@ -1369,6 +1369,7 @@ TempoMap::set_meter (Meter const & m, timepos_t const & time) sc = metric.superclock_at (beats); MeterPoint mp (*this, m, sc, beats, bbt); + ret = add_meter (mp); }