functional_band_biquad: Two-pole Band Filter (functional)

functional_band_biquadR Documentation

Two-pole Band Filter (functional)

Description

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

Usage

functional_band_biquad(
  waveform,
  sample_rate,
  central_freq,
  Q = 0.707,
  noise = 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).

noise

(bool, optional) : If TRUE, uses the alternate mode for un-pitched audio (e.g. percussion). If FALSE, uses mode oriented to pitched audio, i.e. voice, singing, or instrumental music (Default: FALSE).

Value

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

References


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