functional_bandpass_biquad: Band-pass Biquad Filter (functional)

functional_bandpass_biquadR Documentation

Band-pass Biquad Filter (functional)

Description

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

Usage

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)⁠

References


curso-r/torchaudio documentation built on May 4, 2023, 2:27 a.m.