package soundtouch

  1. Overview
  2. Docs
Bindings for the soundtouch library which provides functions for changing pitch and timestretching audio data

Install

Dune Dependency

Authors

Maintainers

Sources

v0.1.9.tar.gz
md5=bb457bc6a52619c720ab8c4a565f1bf7
sha512=2e330a9218a81bff8dd1d5d8c9b1fb59d9b9adc2fcf1532d20396f8075888f948e310cef0343875e59adb9e0c5d74b38d5a55dae15e0517d3316d8e72cac15a0

doc/soundtouch/Soundtouch/index.html

Module SoundtouchSource

Soundtouch is a library to change tempo or pitch of sound.

Initialization

Sourcetype t

A converter.

Sourceval make : int -> int -> t

Create a new soundtouch converte with given number of channels and samplerate.

Sourceval get_version_string : t -> string

Soundtouch library version.

Sourceval get_version_id : t -> int

Soundtouch library version identifier.

Sound parameters

Sourceval set_rate : t -> float -> unit

Set playing rate (default is 1., smaller means slower).

Sourceval set_tempo : t -> float -> unit

Set tempo (default 1., smaller means slower).

Sourceval set_pitch : t -> float -> unit

Set pitch (default 1., smaller means lower).

Sound manipulation

Sourceval put_samples_ba : t -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> unit

Put samples. Data is interleaved with given number of channels.

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

Put samples (in a non-interleaved format) with given offset in array and number of samples.

Sourceval get_available_samples : t -> int

Number of available output samples.

Sourceval get_samples_ba : t -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> int

Retreive samples.

Sourceval get_samples_ni : t -> float array array -> int -> int -> int

Retreive samples (in a non-interleaved format).

Sourceval flush : t -> unit

Flush the last samples from the processing pipeline to the output.

Sourceval clear : t -> unit

Clear all samples in output and internal processing buffers.

Sourcemodule BPM : sig ... end

Tempo (beats-per-minute) detection.

OCaml

Innovation. Community. Security.