From 5723c9bf9c43230c824e2f8c44e33414fd6feac6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 13 Nov 2023 22:31:57 -0700 Subject: [PATCH] temporal: slightly more debug info when computing quarters from superclock --- libs/temporal/tempo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index e53cecc873..8bb24dcf76 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -621,10 +621,10 @@ TempoPoint::quarters_at_superclock (superclock_t sc) const int64_t remain = superbeats - (b * big_numerator); int32_t t = PBD::muldiv_round (Temporal::ticks_per_beat, remain, big_numerator); - DEBUG_TRACE (DEBUG::TemporalMap, string_compose ("%8 => \nsc %1 delta %9 = %2 secs rem = %3 rem snotes %4 sbeats = %5 => %6 : %7\n", sc, whole_seconds, remainder, supernotes, superbeats, b , t, *this, sc_delta)); - const Beats ret = _quarters + Beats (b, t); + DEBUG_TRACE (DEBUG::TemporalMap, string_compose ("%8 => \nsc %1 delta %9 = %2 secs rem = %3 rem snotes %4 sbeats = %5 => %6 : %7 + %10 = %11\n", sc, whole_seconds, remainder, supernotes, superbeats, b , t, *this, sc_delta, _quarters, ret)); + /* positive superclock can never generate negative beats unless * it is too large. If that happens, handle it the same way as * the opening special case in this method.