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
@@ -494,7 +494,7 @@
// 模式0:频谱柱状图(居中对称 + 镜像)
function drawSpectrum() {
const barCount = bufferLength / 2;
const barCount = bufferLength; // 使用全部频段 bin,保留高频
const barWidth = (width * 0.8) / barCount;
const gap = 2;
const maxBarHeight = height * 0.35;