miniDSP
A small C library for audio DSP
Loading...
Searching...
No Matches
biquad Struct Reference

State and coefficients for a single biquad filter section. More...

#include <biquad.h>

Data Fields

smp_type a0
 
smp_type a1
 
smp_type a2
 
smp_type a3
 
smp_type a4
 
smp_type x1
 
smp_type x2
 
smp_type y1
 
smp_type y2
 

Detailed Description

State and coefficients for a single biquad filter section.

The five a-coefficients encode the filter transfer function: y[n] = a0*x[n] + a1*x[n-1] + a2*x[n-2] - a3*y[n-1] - a4*y[n-2]

x1, x2 hold the two most recent input samples ("delay line"). y1, y2 hold the two most recent output samples.

Definition at line 47 of file biquad.h.

Field Documentation

◆ a0

smp_type biquad::a0

Definition at line 48 of file biquad.h.

◆ a1

smp_type biquad::a1

Definition at line 48 of file biquad.h.

◆ a2

smp_type biquad::a2

Definition at line 48 of file biquad.h.

◆ a3

smp_type biquad::a3

Definition at line 48 of file biquad.h.

◆ a4

smp_type biquad::a4

Definition at line 48 of file biquad.h.

◆ x1

smp_type biquad::x1

Definition at line 49 of file biquad.h.

◆ x2

smp_type biquad::x2

Definition at line 49 of file biquad.h.

◆ y1

smp_type biquad::y1

Definition at line 50 of file biquad.h.

◆ y2

smp_type biquad::y2

Definition at line 50 of file biquad.h.


The documentation for this struct was generated from the following file: