From 0934d8bbb6e0c3e60b64b79e06df4bfb46f8b4af Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 19:39:18 +0000 Subject: [PATCH] Audio Lab: fix highlight timing vs speed setting computeMapping was applying speedMult on top of BPM that already included it (setBPM(baseBPM * speedMult)). Double-multiplication made highlights run at wrong speed. BPM already encodes speed. --- public/audio-lab.js | 2 +- public/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/audio-lab.js b/public/audio-lab.js index 12012e21..133c6d83 100644 --- a/public/audio-lab.js +++ b/public/audio-lab.js @@ -156,7 +156,7 @@ } const bpm = MeshAudio.getBPM ? MeshAudio.getBPM() : 120; - const tm = 60 / bpm * speedMult; + const tm = 60 / bpm; // BPM already includes speed multiplier const notes = sampledBytes.map((byte, i) => { const midi = quantizeToScale(byte, scale); diff --git a/public/index.html b/public/index.html index 3500474b..0058d94b 100644 --- a/public/index.html +++ b/public/index.html @@ -93,7 +93,7 @@ - +