Module Soundtouch.BPM

module BPM: sig .. end

Tempo (beats-per-minute) detection.


type t 

A beat detector.

val make : int -> int -> t

Create a new beat detector with given number of channels and samplerate.

val put_samples_ni : t -> float array array -> int -> int -> unit

Put samples in the detector.

val get_bpm : t -> float

Analyze samples and estimate tempo (in beats per minute).