Home

dev / openkara

publicthedavidweng/OpenKara· sync paused
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat(audio): make the equalizer readable with named bands, a dB scale, and presets (#237) (#243)

2 months ago

46da356
Authored
Davy7/26/2026, 2:49:06 AM
The EQ surfaced the engineering parameter directly: each band's only label was
its raw center frequency ("60 Hz" … "14 kHz"), the -12..+12 dB range and its 0 dB
center were invisible unless you dragged and read the number, and there were no
presets at all — so a listener who is not an audio engineer had nothing to steer
by.

Show a friendly band name as the primary label with the frequency kept as a
secondary caption, mark the dB scale under the sliders, and add a preset row
(Flat, Vocal Boost, Bass Boost, Treble Boost, Warm, Bright, Rock, Pop) that
commits through the existing gain path. The active preset is highlighted and
falls back to "Custom" once a band is nudged.

Presentation-only: gains remain the same five-value dB array the store, IPC, and
Rust EqProcessor already validate, and every preset value stays inside ±12 dB.
Applying a preset cancels a pending debounced band commit so an in-flight drag
cannot clobber it 75ms later.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Parent687da3a

4 files changed
  • src/components/Settings/SettingsEqSection.test.tsx+137−1
  • src/components/Settings/SettingsEqSection.tsx+112−2
  • src/locales/en.json+16−1
  • src/locales/zh-CN.json+16−1