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.0.tar.gz
md5=5338523070ce8aeae652b8680718c6d8
sha512=e12c2048c4438911578e2dbe109a1d1c98b1c05ef80b3a860a2e275eeb24d3831484d8e82ca34914da3b94850e96e3ef2c2e5c3801d031062780142b7fdca90c

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 -> state
OCaml

Innovation. Community. Security.