13
0

libtemporal: fix bug with placement of new MeterPoint

This commit is contained in:
Paul Davis 2021-01-01 18:30:00 -07:00
parent 8737603d93
commit 9a2ec93a74

View File

@ -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);
}