From 99174d1bf810e8ccbbb2825d2b33877cf2a41148 Mon Sep 17 00:00:00 2001 From: Me Here Date: Sat, 30 May 2026 07:12:00 -0500 Subject: [PATCH] PM_K-1 0.0.14 (fix): late-toggled Continue arms the seam too If Continue was toggled on mid-segment, _prepare_next never ran during bar (bars-1) and the seam stayed un-armed. Fall back to prep on the spot at the boundary itself. Co-Authored-By: Claude Opus 4.7 (1M context) --- pico-cp/__pycache__/app.cpython-312.pyc | Bin 94155 -> 94235 bytes pico-cp/app.py | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pico-cp/__pycache__/app.cpython-312.pyc b/pico-cp/__pycache__/app.cpython-312.pyc index 191ef5e577ba191bcda7d8af9ea455c6907d1104..c6a226a12e8c75e237e03b8a5da39a044be642ca 100644 GIT binary patch delta 413 zcmYkwPe_w-9LMqB=l49%)_Q!v`H0$_8qDbsa>N?>FaMw@QUk+-=t2AwWey2eM1_JH zq7sSn$aWBv;bG!Q8T$1gB6yJoy2*xv4tmo(sU*mj=;-9<@czInbR^9kOG-#l9M=7$X?*S-@oA zOD1%fp|2+73GkCI4-Ozep?tJRSSE8JGB`HLUWADU*rJV6#6c$9Mg^y2f!(L zpJN|5r?=&Z0asL2iEluXs0w`oZs>6>GWF1tvk89%n5g6>7C9`m=Ym5qE3xM9RFCSRYsydMy{15jIt+W-In delta 379 zcmW-VO(=tL9LN9P=VdP*PkD>kF!GS39HvQ95@{)KwUrAE2~$KlEJ70HwH~#W1GQu) zrIjCYaKsL52p8mFxyaiAYq5L|pHF?(9>n0iC 0 and bar % self.bars == 0: # segment boundary self._seg_start = time.monotonic() # timer resets with the bar counter - if self.continue_on and self._next_pending is not None: - self._seam_t = self.lanes[0]['next'] # the wall-clock time of THIS boundary step - self._advance = True # tick() will swap to the prepared track + if self.continue_on: + if self._next_pending is None: self._prepare_next() # late-toggled Continue: prep on the spot + if self._next_pending is not None: + self._seam_t = self.lanes[0]['next'] # the wall-clock time of THIS boundary step + self._advance = True # tick() will swap to the prepared track # Note: per-master-step continuous ramp handles the bpm reset implicitly (seg_bar wraps to 0) t = self.trainer # gap trainer: silence during the rest bars self._muted = bool(t and (t['play'] + t['mute']) and (bar % (t['play'] + t['mute'])) >= t['play'])