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.0.tar.gz
md5=de4088083dc16a4a660e378f9573271a
sha512=ff76e514726a6b0abeb043d374615d69b01ba212f06fb10de17aff2f161c447429460e3ac682364b9c0a1f00161648c696caaf596fc4a89cb95c6a33b143cdaa

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.