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:
parent
7cd681ec9e
commit
9e4a695689
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user