mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-29 02:38:21 +00:00
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.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@
|
||||
<script src="analytics.js?v=1774126708" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="audio.js?v=1774200683" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="audio-v1-constellation.js?v=1774207165" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="audio-lab.js?v=1774208167" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="audio-lab.js?v=1774208358" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="live.js?v=1774205085" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="observers.js?v=1774290000" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="observer-detail.js?v=1774028201" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
|
||||
Reference in New Issue
Block a user