Skip to content

quickTempo

quickTempo(y, sr?, opts?): object

Defined in: packages/pleco-xa/src/scripts/xa-beat-tracker.js:717

QUICK TIER — windowed live tempo estimate.

Analyzes only the last windowSec seconds of audio with a normalized autocorrelation over the onset envelope. This is intentionally cheaper and coarser than tempo(): lag-quantized BPM, no tempogram, no log-normal prior.

This is NOT the precise tier and is NEVER used as a fallback by tempo() or beat_track(). Callers opt into the quick tier explicitly.

any[] | Float32Array<ArrayBufferLike>

audio time series

number = 22050

sample rate

number

number

upper edge of the search range

number

lower edge of the search range

number

analysis window: last N seconds of y

object

confidence is the measured prominence of the best autocorrelation peak over the runner-up (0..1), not a constant.

bpm: number

confidence: number

tier: "quick"

windowSec: number

if the window contains no detectable onsets or is too short for the requested BPM range — never returns a default BPM.