graphic eq + cleanup

This commit is contained in:
Boof2015
2026-07-02 23:12:58 -04:00
parent 0003c7d778
commit 9ce825b673
474 changed files with 765 additions and 187 deletions
+9
View File
@@ -67,6 +67,10 @@ export interface EQBand {
enabled: boolean;
}
// EQ editor mode — graphic is a fixed 5-band front-end compiled onto the same
// parametric engine (see src/audio/graphicEq.ts).
export type EQMode = 'parametric' | 'graphic';
// EQ Preset
export interface EQPreset {
id: string;
@@ -74,6 +78,11 @@ export interface EQPreset {
bands: EQBand[];
preamp: number;
isCustom?: boolean;
// Which editor the preset targets; absent = 'parametric' (pre-mode presets).
mode?: EQMode;
// Slider gains (dB) when mode === 'graphic'; `bands` then holds the compiled
// snapshot so older builds / missing gains degrade to an identical parametric preset.
graphicGains?: number[];
}
// Visualizer config (scopes land at M3)