From 653c65628719de3aa9fa5c94335ab21553494d42 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Fri, 6 Nov 2026 12:05:39 +0100 Subject: [PATCH] fix(player): seek three bars before drops --- web/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/main.ts b/web/src/main.ts index b4a116a..338141d 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -294,12 +294,12 @@ const actions: CardActions = { toDrop: (c) => toDrop(c), }; -/// Seek to the next drop of the playing card, two bars early so the build is heard +/// Seek to the next drop of the playing card, three bars early so the build is heard /// before it lands; past the last one, back to the first. function toDrop(card: Card): void { const a = player.audio; if (card !== current() || !a.duration || !card.drops.length) return; - const lead = 8 * beatSeconds(); + const lead = 12 * beatSeconds(); const times = card.drops.map((d) => Math.max(0, d * a.duration - lead)); const next = times.find((t) => t > a.currentTime + 1) ?? times[0]; player.seek(next);