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.7.4.tar.gz
md5=c37d3d7300159c55f7f661afa702350f
sha512=14eae4f480fa6b2f94811059c4811f0b967de32819b6908e0f3c03579f912614cad7351c12eb31c485b25a8dd4e86091853f93890a491a74c91a5b12e98ff28d

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

Module Audio.MonoSource

Operations on mono buffers (with only one channel).

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

Length in samples.

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

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

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

Samplewise add two buffers of the same length.

Sourceval mult : t -> t -> unit
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.