fix(visualizer): improve responsiveness and visibility

- Increase FFT emit rate: ~21fps → ~60fps (interval 2048 → 735 samples)
- Boost scale factor: 4x → 50x for more visible response
- Gentler log mapping: powf(2.0) → powf(1.4) for better spread across bars
- Faster smoothing: attack 0.7→0.85, decay 0.15→0.5
- Faster CSS transitions: 80ms → 35ms
- Solid colors instead of gradients for better visibility
This commit is contained in:
vicrodh committed 2026-01-30 22:20:11 -06:00
1 parent 16b35c33fd
commit 7e17b74f99
2 files changed
+18 -20

No files matched your search

@@ -187,13 +187,12 @@
flex: 1;
max-width: 20px;
height: var(--height);
background: linear-gradient(to top, var(--color), transparent);
background: var(--color);
border-radius: 4px 4px 0 0;
/* GPU accelerated - only transform, no layout */
transform: scaleY(1);
transform-origin: bottom;
transition: height 80ms ease-out;
transition: height 35ms linear;
will-change: height;
opacity: 0.9;
}
/* Wave mode */
@@ -209,7 +208,7 @@
}
.wave-svg path {
transition: d 80ms ease-out;
transition: d 35ms linear;
}
/* Mirror mode - bars going up and down from center */
@@ -238,9 +237,9 @@
width: 100%;
height: var(--height);
max-height: 48%;
background: linear-gradient(to top, var(--color), transparent);
background: var(--color);
border-radius: 3px;
transition: height 80ms ease-out;
transition: height 35ms linear;
will-change: height;
}