Table of Contents

Class EqualizerBand

Namespace
NAudio.Effects
Assembly
NAudio.Core.dll

One band of an Equalizer. Mutate the properties and call Update() to apply the change (click-free).

public sealed class EqualizerBand
Inheritance
EqualizerBand
Inherited Members

Properties

Frequency

Centre or corner frequency in Hz.

public float Frequency { get; set; }

Property Value

float

GainDb

Boost/cut in decibels for peaking and shelf shapes. Ignored by the others.

public float GainDb { get; set; }

Property Value

float

Q

Quality factor for peaking / low-pass / high-pass / notch / band-pass / all-pass shapes. Higher is narrower. Ignored by the shelves.

public float Q { get; set; }

Property Value

float

ShelfSlope

Shelf slope for LowShelf / HighShelf. 1 is the steepest monotonic slope. Ignored by the other shapes.

public float ShelfSlope { get; set; }

Property Value

float

Type

Filter shape. Defaults to Peaking.

public EqualizerBandType Type { get; set; }

Property Value

EqualizerBandType

Methods

HighShelf(float, float, float)

Creates a high-shelf band.

public static EqualizerBand HighShelf(float frequency, float gainDb, float shelfSlope = 1)

Parameters

frequency float
gainDb float
shelfSlope float

Returns

EqualizerBand

LowShelf(float, float, float)

Creates a low-shelf band.

public static EqualizerBand LowShelf(float frequency, float gainDb, float shelfSlope = 1)

Parameters

frequency float
gainDb float
shelfSlope float

Returns

EqualizerBand

Peaking(float, float, float)

Creates a peaking band.

public static EqualizerBand Peaking(float frequency, float q, float gainDb)

Parameters

frequency float
q float
gainDb float

Returns

EqualizerBand