samples_to_frames
samples_to_frames(
samples,hop_length?,n_fft?):number|any[]
Defined in: packages/pleco-xa/src/scripts/xa-convert.js:33
Convert audio samples to frame indices
Parameters
Section titled “Parameters”samples
Section titled “samples”number | any[]
Sample indices
hop_length?
Section titled “hop_length?”number = 512
Hop length
n_fft?
Section titled “n_fft?”number = null
FFT window size (optional)
Returns
Section titled “Returns”number | any[]
Frame indices