package mm

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.8.6.tar.gz
md5=003b6e873fe6158dda4627bb674fb57b
sha512=c486e8eaa5dd25a2629c9486c4048ffa2cdeae9e56f73bc8d01a86413038dd3473ebd383abb06f08a2a24a78a335f22aede98ac92436e42a9c6eb1a856f92dab

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

Module Effect.ADSRSource

ADSR (Attack/Decay/Sustain/Release) envelopes.

Sourcetype t

An ADSR enveloppe.

Sourceval make : int -> (float * float * float * float) -> t

Create an envelope with specified Attack/Decay/Sustain/Release times in seconds (excepting sustain which is an amplification coefficient between 0. and 1.). Negative sustain means that that notes should be released just after decay.

Sourcetype state

Current state in the ADSR envelope.

Sourceval init : unit -> state

Initial state for processing.

Sourceval release : state -> state
Sourceval dead : state -> bool
Sourceval process : t -> state -> buffer -> int -> int -> state
OCaml

Innovation. Community. Security.