SoundtouchSoundtouch is a library to change tempo or pitch of sound.
val make : int -> int -> tCreate a new soundtouch converte with given number of channels and samplerate.
val get_version_string : t -> stringSoundtouch library version.
val get_version_id : t -> intSoundtouch library version identifier.
val set_rate : t -> float -> unitSet playing rate (default is 1., smaller means slower).
val set_tempo : t -> float -> unitSet tempo (default 1., smaller means slower).
val set_pitch : t -> float -> unitSet pitch (default 1., smaller means lower).
val put_samples_ba : t -> (float, Stdlib.Bigarray.float32_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t -> unitPut samples. Data is interleaved with given number of channels.
val put_samples_ni : t -> float array array -> int -> int -> unitPut samples (in a non-interleaved format) with given offset in array and number of samples.
val get_available_samples : t -> intNumber of available output samples.
val get_samples_ba : t -> (float, Stdlib.Bigarray.float32_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t -> intRetreive samples.
val get_samples_ni : t -> float array array -> int -> int -> intRetreive samples (in a non-interleaved format).
val flush : t -> unitFlush the last samples from the processing pipeline to the output.
val clear : t -> unitClear all samples in output and internal processing buffers.
module BPM : sig ... endTempo (beats-per-minute) detection.