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
typeEqBandTypeShape.
frequencydoubleFrequency in Hz.
gainDbdoubleGain in dB.
qdoubleQuality 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
EnabledParameter
On/off parameter, or null.
public IParameter? EnabledParameter { get; set; }
Property Value
Frequency
Frequency in Hz.
public double Frequency { get; set; }
Property Value
FrequencyParameter
Frequency parameter (plain value in Hz), or null.
public IParameter? FrequencyParameter { get; set; }
Property Value
GainDb
Gain in dB (bells and shelves).
public double GainDb { get; set; }
Property Value
GainParameter
Gain parameter (plain value in dB), or null.
public IParameter? GainParameter { get; set; }
Property Value
HasGain
true if the gain is meaningful for the current shape (bells and shelves).
public bool HasGain { get; }
Property Value
IsEnabled
false when the band is bypassed.
public bool IsEnabled { get; set; }
Property Value
Q
Quality factor.
public double Q { get; set; }
Property Value
QParameter
Q parameter (plain value = Q), or null.
public IParameter? QParameter { get; set; }
Property Value
Type
Shape of the band.
public EqBandType Type { get; set; }
Property Value
TypeParameter
Shape parameter (step index = EqBandType value), or null.
public IParameter? TypeParameter { get; set; }
Property Value
Methods
Coefficients(double)
Coefficients of the band at a sample rate (identity when bypassed).
public BiquadDesign.Coefficients Coefficients(double sampleRate)
Parameters
sampleRatedoubleSample rate in Hz.
Returns
- BiquadDesign.Coefficients
The biquad coefficients.