Skip to content

API Reference


API Reference

Functions

FunctionDescription
getBiquadFilterCreates a biquad lowpass filter for audio processing.
analyzeFullBufferAnalyzes a complete audio buffer to detect the BPM (tempo) synchronously.
createRealtimeBpmAnalyzerCreates a real-time BPM analyzer for live audio streams.

Classes

ClassDescription
BpmAnalyzerReal-time BPM analyzer with typed event listeners.
RealTimeBpmAnalyzerCore analyzer class for real-time BPM detection.

Type Aliases

Type AliasDescription
ThresholdThreshold value for peak detection (0.0 to 1.0)
PeaksArray of peak positions in audio samples
PeaksAndThresholdPeaks with their associated threshold
BpmCandidatesBPM analysis results with tempo candidates
IntervalInterval between beats
GroupTempo group with occurrence count
TempoDetected tempo with confidence metrics
RealTimeBpmAnalyzerParametersConfiguration options for the real-time BPM analyzer
RealTimeBpmAnalyzerOptionsInternal analyzer options with required fields
BiquadFilterOptionsConfiguration options for biquad filter creation

Events

Type AliasDescription
ProcessorOutputEventEvents emitted by the BPM analyzer processor (Processor → Main Thread)
ProcessorInputEventControl events sent to the processor (Main Thread → Processor)
ProcessorInputMessageMessagePort message wrapper for processor input events
BpmAnalyzerEventMapType-safe event listener map for BPM analyzer events

Released under the Apache License 2.0