package mm

  1. Overview
  2. Docs
The mm library contains high-level to create and manipulate multimedia streams (audio, video, MIDI)

Install

Dune Dependency

Authors

Maintainers

Sources

v0.8.1.tar.gz
md5=34564f61473e235e81330a53f3dbf869
sha512=de153182cd51a52e55e7df6bf4abf46a19d7ebfc81dc13c6715a7f6321f77b8b321ee80343db9e84fdf7d0ea08d31c16fe0f646ad770937e884da7500a8e65e5

doc/mm.audio/Mm_audio/Audio/Mono/index.html

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.