From 30ec62a9536295d5565ea79d2e18ff04862887c7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 22 Oct 2022 03:09:00 +0200 Subject: [PATCH] This is clearly broken Partially revert previous commit. Otherwise snap to bar/beat clocks-displays display rounded down X|Y|1919 instead of X|Y+1|0 --- libs/temporal/temporal/tempo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 69e1373935..bdbaed8663 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -245,7 +245,7 @@ class LIBTEMPORAL_API Tempo { static void superbeats_to_beats_ticks (int64_t sb, int32_t& b, int32_t& t) { b = sb / big_numerator; int64_t remain = sb - (b * big_numerator); - t = PBD::muldiv_floor (Temporal::ticks_per_beat, remain, big_numerator); + t = PBD::muldiv_round (Temporal::ticks_per_beat, remain, big_numerator); } bool active () const { return _active; }