Refactor EQPage component to enhance PEQ preset management by introducing a local cache for presets, improving frequency normalization and display functions, and updating related state handling methods. Add real-time slider preview for better user experience.

This commit is contained in:
yangy
2026-05-29 14:47:33 +08:00
parent ce55be295a
commit ccbafdd720
5 changed files with 167 additions and 51 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ function vuHeightsForDance(elapsedMs: number): number[] {
const kick = Math.sin(beatPhase * Math.PI);
return Array.from({ length: VU_BAR_COUNT }, (_, i) => {
const dist = Math.abs(i - lead);
const dist = Math.abs(i - lead);
let peak = 0.06;
if (dist === 0) peak = 1;
else if (dist === 1) peak = 0.82;