chore(HTML): 更新 audio-visualization 部分页面,扩展频谱高频范围

This commit is contained in:
2026-07-05 14:56:46 +08:00
parent 914f76b0b9
commit a022916e7a
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -311,7 +311,7 @@
function drawSpectrum(x, y, w, h) {
ctx.save();
const bars = 64;
const step = Math.floor(freqData.length / 2 / bars);
const step = Math.floor(freqData.length / bars); // 覆盖全部 bin,保留高频
const bw = w / bars;
if (peakHold.length !== bars) peakHold = new Array(bars).fill(0);