package tiny_libs

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

Module EnvelopeSource

Sourcetype t = {
  1. attack : float;
  2. decay : float;
  3. sustain : float;
  4. release : float;
}
Sourceval percussive : attack:float -> decay:float -> t
Sourceval level : t -> held:float -> float -> float
Sourceval duration : t -> held:float -> float
Sourceval apply : t -> held:float -> Signal.t -> Signal.t
Sourcetype curve =
  1. | Linear
  2. | Exponential
Sourcetype stage =
  1. | Idle
  2. | Attack
  3. | Decay
  4. | Sustain
  5. | Release
Sourcetype running
Sourceval start : unit -> running
Sourceval gate_on : running -> unit
Sourceval gate_off : running -> unit
Sourceval fill : curve -> t -> running -> Signal.t -> unit
Sourceval stage : running -> stage
Sourceval current : running -> float