API Reference / Detector
Type Alias: Detector
ts
type Detector = "peaks" | "tempogram";Defined in: core/types.ts:206
Tempo detector of the real-time analyzer.
peaks, the default: amplitude peaks after a lowpass. Connect it through getBiquadFilter.tempogram: spectral flux across several bands, a sliding autocorrelation and a tempo prior. Connect the source straight to the analyzer: a lowpass removes the bands it listens to. It reads about twice a second, leavesthresholdat 0, and givescountas a salience score used for ranking.bpmStablemeans the estimates agreed over time, andconfidenceis the normalised autocorrelation at the tempo.