Design two-pole band-pass filter. Similar to SoX implementation.

functional_bandpass_biquad(
  waveform,
  sample_rate,
  central_freq,
  Q = 0.707,
  const_skirt_gain = FALSE
)

Arguments

waveform

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

sample_rate

(int): sampling rate of the waveform, e.g. 44100 (Hz)

central_freq

(float): central frequency (in Hz)

Q

(float, optional): https://en.wikipedia.org/wiki/Q_factor (Default: 0.707)

const_skirt_gain

(bool, optional) : If TRUE, uses a constant skirt gain (peak gain = Q). If FALSE, uses a constant 0dB peak gain. (Default: FALSE)

Value

Tensor: Waveform of dimension of (..., time)