package mm

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Audio.MonoSource

Operations on mono buffers (with only one channel).

Sourcetype t = float array

A mono buffer.

Sourcetype buffer = t
Sourceval create : int -> t
Sourceval make : int -> float -> t
Sourceval sub : t -> int -> int -> t
Sourceval blit : t -> int -> t -> int -> int -> unit
Sourceval copy : t -> int -> int -> t
Sourceval copy_to_ba : t -> int -> int -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> unit
Sourceval copy_from_ba : (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t -> t -> int -> int -> unit
Sourceval to_ba : t -> int -> int -> (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t
Sourceval length : t -> int

Length in samples.

Sourceval append : t -> int -> int -> t -> int -> int -> t
Sourceval clear : t -> int -> int -> unit

Clear a portion of a buffer (fill it with zeroes).

Sourceval amplify : float -> t -> int -> int -> unit
Sourceval resample : ?mode:[ `Nearest | `Linear ] -> float -> t -> int -> int -> t
Sourceval clip : t -> int -> int -> unit
Sourceval noise : t -> int -> int -> unit
Sourceval squares : t -> int -> int -> float
Sourceval add : t -> int -> t -> int -> int -> unit

Samplewise add two buffers, storing the result in the first one.

Sourceval mult : t -> int -> t -> int -> int -> unit

Samplewise multiply two buffers of the same length, storing the result in the first one.

Sourcemodule Buffer_ext : sig ... end

Buffers of variable size. These are particularly useful for temporary buffers.

Sourcemodule Analyze : sig ... end

Functions for analyzing audio data.

Sourcemodule Effect : sig ... end
Sourcemodule Generator : sig ... end

Sound generators.

OCaml

Innovation. Community. Security.