跳转到内容

detectBeats

此内容尚不支持你的语言。

detectBeats(options): Promise<BeatDetectionResult>

Defined in: analysis.ts:83

Detect beats from an interleaved PCM source using a bounded energy-envelope onset detector. The signal is processed in fixed windows, computing a local RMS envelope; an onset is flagged where the envelope rises above the local noise floor by minimumOnsetDb. Bounded memory: only the current window and a rolling floor are retained.

AnalysisSource & object

Promise<BeatDetectionResult>