From 96e5229ad16450e83cbb5a14872bf16d4d6431dd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 20 Aug 2025 17:35:46 -0600 Subject: [PATCH] temporal: in the event of the most common logic failure, provide more info TEMPORAL_MAP_ASSERT() doesn't give us any actual values or context. --- libs/temporal/tempo.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 18137ac095..25f94a260d 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -652,6 +652,10 @@ TempoPoint::superclock_at (Temporal::Beats const & qn) const TEMPO_MAP_ASSERT (_quarters == Beats()); } else { /* positive */ + if (qn < _quarters) { + std::cerr << "\n\nLOGIC FAIL sc @ " << qn << " using " << *this << std::endl; + PBD::stacktrace (std::cerr, 19); + } TEMPO_MAP_ASSERT (qn >= _quarters); }