Vixen
02b45cc4
csharp
public readonly record struct BiquadCoefficients

The five coefficients of a second-order section, already normalised.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Public because a biquad is the one filter shape that turns up everywhere — an equaliser band, a muffling low-pass behind a door, the anti-alias filter a resampler wants — and every one of those wants the coefficients without also wanting a bus effect wrapped around them.

Fields and properties (6)

  • public float B0

    Feed-forward, current input.

  • public float B1

    Feed-forward, one sample back.

  • public float B2

    Feed-forward, two samples back.

  • public float A1

    Feedback, one sample back.

  • public float A2

    Feedback, two samples back.

  • public static BiquadCoefficients Identity

    The filter that does nothing.

Methods (2)

  • public BiquadCoefficients(float B0, float B1, float B2, float A1, float A2)

    The five coefficients of a second-order section, already normalised.

  • public static BiquadCoefficients Design(BiquadFilterKind kind, int sampleRate, float frequency, float q = 0.70710677, float gainDb = 0)

    Designs a section.

Used by (3)

  • BiquadFilterEffectVixen.Audio
  • LoudnessMeterEffectVixen.Audio
  • VoiceVixen.Audio