Skip to content

tempogram

tempogram(y?, sr?, onset_envelope?, hop_length?, win_length?, center?, window?, norm?): Float64Array<ArrayBufferLike>[]

Defined in: packages/pleco-xa/src/scripts/xa-tempogram.js:113

Local autocorrelation tempogram of the onset strength envelope.

Legacy positional signature preserved.

any[] | Float32Array<ArrayBufferLike>

audio time series (optional if onset_envelope provided)

number = 22050

sample rate

any[] | Float32Array<ArrayBufferLike>

pre-computed onset strength envelope

number = 512

hop length used for the onset envelope

number = 384

autocorrelation window in frames

boolean = true

center the analysis windows (linear_ramp pad)

string = 'hann'

window function (‘hann’ only)

number = Infinity

Infinity for per-column max-normalization (default), null for raw autocorrelation

Float64Array<ArrayBufferLike>[]

tempogram [win_length][n_frames] — row k is lag k; convert with convert.tempo_frequencies(win_length, hop_length, sr)

on invalid parameters or an envelope shorter than one analysis window — never returns a fabricated result