griffinlim
griffinlim(
S,n_iter?,hop_length?,win_length?,n_fft?,window?,center?,dtype?,length?,pad_mode?,momentum?,init?,random_state?):Float32Array<ArrayBufferLike>
Defined in: packages/pleco-xa/src/scripts/xa-advanced.js:456
Griffin-Lim algorithm for phase reconstruction
Approximate magnitude spectrogram inversion using iterative phase estimation.
Parameters
Section titled “Parameters”number[][]
Magnitude spectrogram [freq x time]
n_iter?
Section titled “n_iter?”number = 32
Number of iterations (default: 32)
hop_length?
Section titled “hop_length?”number = 512
Hop length for STFT (default: 512)
win_length?
Section titled “win_length?”number = null
Window length (default: null, uses n_fft)
n_fft?
Section titled “n_fft?”number = null
FFT size (default: null, inferred from S)
window?
Section titled “window?”string = 'hann'
Window function (default: ‘hann’)
center?
Section titled “center?”boolean = true
Center the frames (default: true)
dtype?
Section titled “dtype?”string = null
Data type (default: null)
length?
Section titled “length?”number = null
Output length in samples (default: null)
pad_mode?
Section titled “pad_mode?”string = 'constant'
Padding mode (default: ‘constant’)
momentum?
Section titled “momentum?”number = 0.99
Fast Griffin-Lim momentum (default: 0.99)
string = 'random'
Initialization (‘random’ or null, default: ‘random’)
random_state?
Section titled “random_state?”number = null
Random seed (default: null)
Returns
Section titled “Returns”Float32Array<ArrayBufferLike>
Reconstructed audio signal