package mm

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

Operations on mono buffers (with only one channel).

type buffer = t
val create : int -> t
val make : int -> float -> t
val of_array : float array -> t
val to_array : t -> float array
val sub : t -> int -> int -> t
val blit : t -> t -> unit
val copy : t -> t
val length : t -> int

Length in samples.

val append : t -> t -> t
val clear : t -> unit

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

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

Samplewise add two buffers of the same length.

val mult : t -> t -> unit
module Buffer_ext : sig ... end

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

module Analyze : sig ... end

Functions for analyzing audio data.

module Effect : sig ... end
module Generator : sig ... end

Sound generators.

OCaml

Innovation. Community. Security.