functional_griffinlim.Rd
Compute waveform from a linear scale magnitude spectrogram using the Griffin-Lim transformation.
Implementation ported from librosa
.
functional_griffinlim(
specgram,
window,
n_fft,
hop_length,
win_length,
power,
normalized,
n_iter,
momentum,
length,
rand_init
)
(Tensor): A magnitude-only STFT spectrogram of dimension (..., freq, frames)
where freq is n_fft %/% 2 + 1
.
(Tensor): Window tensor that is applied/multiplied to each frame/window
(int): Size of FFT, creates n_fft %/% 2 + 1
bins
(int): Length of hop between STFT windows.
(int): Window size.
(float): Exponent for the magnitude spectrogram, (must be > 0) e.g., 1 for energy, 2 for power, etc.
(bool): Whether to normalize by magnitude after stft.
(int): Number of iteration for phase recovery process.
(float): The momentum parameter for fast Griffin-Lim. Setting this to 0 recovers the original Griffin-Lim method. Values near 1 can lead to faster convergence, but above 1 may not converge.
(int or NULL): Array length of the expected output.
(bool): Initializes phase randomly if TRUE, to zero otherwise.
tensor
: waveform of (..., time), where time equals the length
parameter if given.