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.
Parameters
Section titled “Parameters”any[] | Float32Array<ArrayBufferLike>
audio time series
number = 22050
sample rate
hopLength?
Section titled “hopLength?”number
maxBpm?
Section titled “maxBpm?”number
upper edge of the search range
minBpm?
Section titled “minBpm?”number
lower edge of the search range
windowSec?
Section titled “windowSec?”number
analysis window: last N seconds of y
Returns
Section titled “Returns”object
confidence is the measured prominence of the best autocorrelation peak over the runner-up (0..1), not a constant.
bpm:
number
confidence
Section titled “confidence”confidence:
number
tier:
"quick"
windowSec
Section titled “windowSec”windowSec:
number
Throws
Section titled “Throws”if the window contains no detectable onsets or is too short for the requested BPM range — never returns a default BPM.