Skip to content

samples_like

samples_like(X, hop_length?, n_fft?, axis?): Int32Array<ArrayBufferLike>

Defined in: packages/pleco-xa/src/scripts/xa-convert.js:687

Return an array of sample indices to match the time axis from a feature matrix

number | any[]

Feature matrix or number of frames

number = 512

Hop length

number = null

FFT size

number = -1

Time axis (default -1)

Int32Array<ArrayBufferLike>

Array of sample indices