Apply a phasing effect to the audio. Similar to SoX implementation.

functional_phaser(
  waveform,
  sample_rate,
  gain_in = 0.4,
  gain_out = 0.74,
  delay_ms = 3,
  decay = 0.4,
  mod_speed = 0.5,
  sinusoidal = TRUE
)

Arguments

waveform

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

sample_rate

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

gain_in

(float): desired input gain at the boost (or attenuation) in dB. Allowed range of values are 0 to 1

gain_out

(float): desired output gain at the boost (or attenuation) in dB. Allowed range of values are 0 to 1e9

delay_ms

(float): desired delay in milli seconds. Allowed range of values are 0 to 5.0

decay

(float): desired decay relative to gain-in. Allowed range of values are 0 to 0.99

mod_speed

(float): modulation speed in Hz. Allowed range of values are 0.1 to 2

sinusoidal

(bool): If TRUE, uses sinusoidal modulation (preferable for multiple instruments). If FALSE, uses triangular modulation (gives single instruments a sharper phasing effect) (Default: TRUE)

Value

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