13
0

temporal: fix error in computation of timecnt_t::end() for specific conditions

parens were in the wrong place - we need to add the ::magnitude() of
the tick-based duration AFTER conversion of audio-time position to beats, not
before.
This commit is contained in:
Paul Davis 2023-11-06 20:28:03 -07:00
parent 7cd681ec9e
commit 9e4a695689

View File

@ -126,7 +126,7 @@ timecnt_t::end (TimeDomain return_domain) const
} else if (_position.time_domain() == AudioTime) {
const Beats b = TempoMap::use()->quarters_at_superclock (_position.superclocks() + magnitude());
const Beats b = TempoMap::use()->quarters_at_superclock (_position.superclocks()) + Beats::ticks (magnitude());
if (return_domain == BeatTime) {
return timepos_t (b);