package mm

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.