transform_fade.Rd
Add a fade in and/or fade out to an waveform.
transform_fade(fade_in_len = 0, fade_out_len = 0, fade_shape = "linear")
(int, optional): Length of fade-in (time frames). (Default: 0
)
(int, optional): Length of fade-out (time frames). (Default: 0
)
(str, optional): Shape of fade. Must be one of: "quarter_sine",
"half_sine", "linear", "logarithmic", "exponential". (Default: "linear"
)
Tensor: Tensor of audio of dimension (..., time).
forward param: waveform (Tensor): Tensor of audio of dimension (..., time).