Envelope

Envelopes & ModenvelopeLight CPU

ADSR contour — Attack / Decay / Sustain / Release. Gate-driven.

What it does

Four-stage Attack/Decay/Sustain/Release contour.

Wraps daisysp::Adsr. Steps through stages whenever the Gate input crosses the 0.5 threshold high (rising) or low (falling).

Parameters

  • Attack (s)

    attack
    Default 0.1Range 0.001 … 4

    Seconds to rise from 0 to 1 once Gate goes high. A few milliseconds is a percussive snap; a quarter-second or more reads as a swell.

  • Decay (s)

    decay
    Default 0.1Range 0.001 … 4

    Seconds to fall from the peak down to the Sustain level, while Gate is still held. If Sustain is 1 this stage is inaudible; if Sustain is 0 it behaves like a one-shot decay.

  • Sustain (level)

    sustain
    Default 0.7Range 0 … 1

    The level the envelope holds at for as long as Gate stays high — a level, not a time, which is what separates it from the other three. Set it to 0 to turn the ADSR into a plucked AD shape.

  • Release (s)

    release
    Default 0.2Range 0.001 … 4

    Seconds to fall from the Sustain level back to 0 after Gate goes low. This is what keeps ringing after you let go of a pad or button.

Gate-driven: the contour advances when the Gate input crosses 0.5 going up, and releases when it crosses back down. Wire a button, pad or another gate into it — an unwired Envelope never fires.

Ports

In

  • Gate trigger

Out

  • Mod Out value

Audio Control

Inputs

Gate
High/low — wire from a button, pad, or another gate.

Outputs

Mod Out
Normalized contour.

Patches using it

  • aeolian_pentatonic_harptouch2
  • aeolian_rainforest_organtouch2
  • complex-drone-synthtouch2
  • Envelopetouch2
  • Patch Controls Demopatch
  • Patch SM I/O Labpatch_sm
  • Patch SM Module I/Opatch_sm_module
  • Daisy Pod Demopod
  • Seed2 DFM Voiceseed2_dfm
  • standard-test-suite1standard
  • Touch Pad Lead + Kicktouch2
  • Mod Button on Free GPIOtouch2
  • touch2-board-testtouch2
  • White Noise (Shaker)touch2

Bundled with the app — open one from the example browser.