From fc692f5680e07656730cad2bc5e3b4d204d76e26 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 17 Jun 2025 14:00:29 -0600 Subject: [PATCH] Fix for timepos_t::earlier() - superclock_t vs.samplepos_t confusion --- libs/temporal/timeline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/temporal/timeline.cc b/libs/temporal/timeline.cc index 7025ecc08c..10aca3b308 100644 --- a/libs/temporal/timeline.cc +++ b/libs/temporal/timeline.cc @@ -664,7 +664,7 @@ timepos_t::earlier (Temporal::BBT_Offset const & offset) const TempoMap::SharedPtr tm (TempoMap::use()); if (is_superclock()) { - return timepos_t (tm->superclock_at (BBT_Argument (this->superclocks(), tm->bbt_walk (BBT_Argument (this->superclocks(), tm->bbt_at (*this)), -offset)))); + return timepos_t::from_superclock (tm->superclock_at (tm->bbt_walk (BBT_Argument (this->superclocks(), tm->bbt_at (*this)), -offset))); } return timepos_t (tm->bbtwalk_to_quarters (beats(), -offset));