From 9be2c029b2b56f79d7c30b5c787465901f47363e Mon Sep 17 00:00:00 2001 From: Benjamin Hardy Date: Mon, 28 Sep 2026 23:36:43 +0200 Subject: [PATCH] Loop controls now adjust to active hotcue loop --- frontend/src/components/PrepStrip.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/PrepStrip.tsx b/frontend/src/components/PrepStrip.tsx index 58a5899..52d4ddf 100644 --- a/frontend/src/components/PrepStrip.tsx +++ b/frontend/src/components/PrepStrip.tsx @@ -786,9 +786,19 @@ export function PrepStrip({ if (!eng || !eng.ready) return getCtx() // A loop hotcue jumps to its start AND engages a loop of its length — the - // new loop FIRST, so the seek is not wrapped back into the old one. + // new loop FIRST, so the seek is not wrapped back into the old one. The loop + // controls follow it: a beat-sized loop takes over the shared size (so −/+ + // resize THIS loop), and one of no preset size shows in MAN, where its + // toggle is. if (cue.type === 'loop' && cue.length > 0) { - engagLoop(cue.start, cue.start + cue.length, beatsForLoop(cue.start, cue.length)) + const beats = beatsForLoop(cue.start, cue.length) + engagLoop(cue.start, cue.start + cue.length, beats) + if (beats != null) { + setBeatSize(beats) + setLoopMode('beat') + } else { + setLoopMode('manual') + } } else { leaveLoopFor(cue.start) }