Table of Contents

Class EqBand

Namespace
PluginUI
Assembly
PluginUI.dll

One band of a ParametricEqEditor: shape, frequency, gain, Q and on/off state, either stored in the band or read from bound parameters.

public sealed class EqBand
Inheritance
EqBand
Inherited Members

Remarks

When a parameter is set, the band reads and writes it instead of its own field: FrequencyParameter (plain value in Hz), GainParameter (dB), QParameter (Q), EnabledParameter (on above 0.5) and TypeParameter (list parameter whose step index is the EqBandType).

Constructors

EqBand(EqBandType, double, double, double)

Creates a band.

public EqBand(EqBandType type = EqBandType.Bell, double frequency = 1000, double gainDb = 0, double q = 0.7071)

Parameters

type EqBandType

Shape.

frequency double

Frequency in Hz.

gainDb double

Gain in dB.

q double

Quality factor.

Properties

Color

Color of the node and of the band curve (null = automatic, from the band index).

public Color? Color { get; set; }

Property Value

Color?

EnabledParameter

On/off parameter, or null.

public IParameter? EnabledParameter { get; set; }

Property Value

IParameter

Frequency

Frequency in Hz.

public double Frequency { get; set; }

Property Value

double

FrequencyParameter

Frequency parameter (plain value in Hz), or null.

public IParameter? FrequencyParameter { get; set; }

Property Value

IParameter

GainDb

Gain in dB (bells and shelves).

public double GainDb { get; set; }

Property Value

double

GainParameter

Gain parameter (plain value in dB), or null.

public IParameter? GainParameter { get; set; }

Property Value

IParameter

HasGain

true if the gain is meaningful for the current shape (bells and shelves).

public bool HasGain { get; }

Property Value

bool

IsEnabled

false when the band is bypassed.

public bool IsEnabled { get; set; }

Property Value

bool

Q

Quality factor.

public double Q { get; set; }

Property Value

double

QParameter

Q parameter (plain value = Q), or null.

public IParameter? QParameter { get; set; }

Property Value

IParameter

Type

Shape of the band.

public EqBandType Type { get; set; }

Property Value

EqBandType

TypeParameter

Shape parameter (step index = EqBandType value), or null.

public IParameter? TypeParameter { get; set; }

Property Value

IParameter

Methods

Coefficients(double)

Coefficients of the band at a sample rate (identity when bypassed).

public BiquadDesign.Coefficients Coefficients(double sampleRate)

Parameters

sampleRate double

Sample rate in Hz.

Returns

BiquadDesign.Coefficients

The biquad coefficients.