Perform a biquad filter of input tensor. Initial conditions set to 0. https://en.wikipedia.org/wiki/Digital_biquad_filter

functional_biquad(waveform, b0, b1, b2, a0, a1, a2)

Arguments

waveform

(Tensor): audio waveform of dimension of (..., time)

b0

(float): numerator coefficient of current input, x[n]

b1

(float): numerator coefficient of input one time step ago x[n-1]

b2

(float): numerator coefficient of input two time steps ago x[n-2]

a0

(float): denominator coefficient of current output y[n], typically 1

a1

(float): denominator coefficient of current output y[n-1]

a2

(float): denominator coefficient of current output y[n-2]

Value

tensor: Waveform with dimension of (..., time)