Skip to main content

Interface: EqualizerBand

Defined in: packages/player/src/hooks/useEqualizer.ts:36

One slider of the equaliser: the ISO octave centre it sits on, and where the user has it.

A band is identified by its index — its position in EQUALIZER_BANDS, which is also the index every gainsDb array in this package is ordered by. (The entry-id rule that governs the queue does not apply here: the band set is a fixed-length, never-reordered array, so the index is the identity.)

Properties

frequency

readonly frequency: number;

Defined in: packages/player/src/hooks/useEqualizer.ts:38

Centre frequency in Hz — the label to draw under the slider.


gainDb

readonly gainDb: number;

Defined in: packages/player/src/hooks/useEqualizer.ts:40

The band's gain in dB. Negative cuts, positive boosts, 0 is off.