SNDC_FILTER

NAME
SYNOPSIS
PROCESSING

NAME

filter - Generic lowpass/bandpass/highpass filter implemented using a biquad filter.

SYNOPSIS

Inputs:

in [BUFFER] [REQUIRED]: input buffer to be filtered.

cutoff [BUFFER|FLOAT] [REQUIRED]: cutoff frequency for LP and HP, center frequency for BP.

mode [STRING] [REQUIRED]: filter mode, ’lowpass’, ’bandpass’ or ’highpass’.

resonance [BUFFER|FLOAT] [OPTIONAL]: filter resonance or Q factor.

Outputs:

out [BUFFER]: filtered output, same size and sampling rate as input.

PROCESSING

filter is implemented using a biquad filter whose coefficients are calculated based on the mode and parameters, following the formulae found here