AD Envelope

Envelopes & ModadenvLight CPU

One-shot Attack-Decay contour, fired on a rising-edge trigger.

What it does

One-shot Attack-Decay envelope — no sustain.

Wraps daisysp::AdEnv. A file-scope prev_trig snapshot detects rising edges at the Trig input; each edge calls Trigger() to fire the contour once. Attack / Decay / Curve are baked at init.

Parameters

  • Attack (s)

    attack
    Default 0.01Range 0.001 … 4

    Seconds to climb from 0 to 1 after a trigger. 0.01 s is a percussive snap; a quarter-second or more reads as a swell.

  • Decay (s)

    decay
    Default 0.4Range 0.001 … 4

    Seconds to fall back from 1 to 0 once the attack finishes. There is no sustain stage — the envelope always runs straight through to zero.

  • Curve

    curve
    Default 0Range -10 … 10

    Bends the shape of both stages. 0 is a straight line; positive values make it logarithmic (fast at first, then easing in — the natural-sounding choice for plucks); negative bends the other way. DaisySP accepts up to ±100, but ±10 is already well past where it keeps changing audibly.

Fires a one-shot Attack→Decay contour on each rising edge at Trig (wire a button, pad, or gate). Curve 0 = linear; positive bends exponential. No sustain — for full ADSR use the Envelope node.

Ports

In

  • Trig trigger

Out

  • Mod Out value

Audio Control

Inputs

Trig
Rising edge fires the envelope — wire a button, pad, or gate.

Outputs

Mod Out
Normalized 0→1 contour; wire into an amplitude, cutoff, or any Mod input.

Patches using it

  • Comb Filter (Feedback Loop)standard
  • Comb Resonatortouch2
  • Drum Kittouch2
  • Synth Voice (Moog)touch2

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