functional_band_biquad {torchaudio}R 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


[Package torchaudio version 0.3.1 Index]