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)
attackSeconds 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)
decaySeconds 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)
sustainThe 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)
releaseSeconds 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_harp
touch2 - aeolian_rainforest_organ
touch2 - complex-drone-synth
touch2 - Envelope
touch2 - Patch Controls Demo
patch - Patch SM I/O Lab
patch_sm - Patch SM Module I/O
patch_sm_module - Daisy Pod Demo
pod - Seed2 DFM Voice
seed2_dfm - standard-test-suite1
standard - Touch Pad Lead + Kick
touch2 - Mod Button on Free GPIO
touch2 - touch2-board-test
touch2 - White Noise (Shaker)
touch2
Bundled with the app — open one from the example browser.