mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
libtemporal: fix bug with placement of new MeterPoint
This commit is contained in:
parent
8737603d93
commit
9a2ec93a74
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue