libtemporal: fix bug with placement of new MeterPoint
This commit is contained in:
parent
8737603d93
commit
9a2ec93a74
@ -1359,7 +1359,7 @@ TempoMap::set_meter (Meter const & m, timepos_t const & time)
|
|||||||
|
|
||||||
/* meter changes must be on bar */
|
/* meter changes must be on bar */
|
||||||
|
|
||||||
bbt = metric.bbt_at (beats);
|
bbt = metric.bbt_at (sc);
|
||||||
bbt = metric.round_to_bar (bbt);
|
bbt = metric.round_to_bar (bbt);
|
||||||
|
|
||||||
/* compute beat position */
|
/* compute beat position */
|
||||||
@ -1369,6 +1369,7 @@ TempoMap::set_meter (Meter const & m, timepos_t const & time)
|
|||||||
sc = metric.superclock_at (beats);
|
sc = metric.superclock_at (beats);
|
||||||
|
|
||||||
MeterPoint mp (*this, m, sc, beats, bbt);
|
MeterPoint mp (*this, m, sc, beats, bbt);
|
||||||
|
|
||||||
ret = add_meter (mp);
|
ret = add_meter (mp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user