use cleaned up Temporal ::quarters*_at* API (GUI edition)

This commit is contained in:
Paul Davis 2020-12-07 11:40:00 -07:00
parent 3ca2be321d
commit 9412130c01
6 changed files with 93 additions and 23 deletions

View file

@ -1244,10 +1244,10 @@ AudioClock::set_bbt (timepos_t const & w, timecnt_t const & o, bool /*force*/)
Temporal::BBT_Time sub_bbt;
if (negative) {
BBT = tmap->bbt_at (tmap->quarter_note_at (timepos_t (offset)));
BBT = tmap->bbt_at (tmap->quarters_at (timepos_t (offset)));
sub_bbt = tmap->bbt_at (timepos_t (offset - when));
} else {
BBT = tmap->bbt_at (tmap->quarter_note_at (when + offset));
BBT = tmap->bbt_at (tmap->quarters_at (when + offset));
sub_bbt = tmap->bbt_at (timepos_t (offset));
}