Turns a trigger pulse into a shaped envelope: rise (Attack), fall to a level (Decay, Sustain), then fade out (Release).
What it is for
Gives each beat a controlled shape instead of a raw spike: a burst that swells in 20 ms and dies in half a second, a glow that holds while a note lasts. It is the synthesizer envelope, applied to any setting of the particles.
How it works
The envelope starts when Trigger rises to 0.5 or more after having been under 0.4, or when you press the Trigger button on the node. It climbs to its peak during Attack, falls to the Sustain level during Decay, then depends on the Mode. One-Shot: it stays at Sustain for Hold seconds, then fades to 0 during Release, even if the trigger has already dropped. Gate: it stays at Sustain as long as Trigger stays up, and starts the Release when Trigger falls under 0.2. The node shows the current phase and level. The times are real seconds: Slow Motion does not stretch them. All outputs are one value for the whole system.
Connections
Plug a pulse into Trigger: the Beat, Snare or Transient of an Audio node, the Trigger of an Audio Analyzer, a Square Wave, a Math (Greater Than). Outputs: Value (the envelope between Min and Max) into a force's Strength, the Particle System's Auto Speed or an effect's Strength; Envelope (the same curve, always 0 to 1); Active (1 while the envelope plays, 0 at rest); Phase (0 idle, 1 attack, 2 decay, 3 sustain or hold, 4 release).
Settings
| Setting | What it does | Default |
|---|---|---|
| Trigger | Signal that starts the envelope when it rises past 0.5. In Gate mode it also holds the envelope open until it falls under 0.2. | 0 |
| Attack | Time to climb to the peak, in seconds. Near 0 = instant hit; longer = a swell. | 0.02 |
| Decay | Time to fall from the peak to the Sustain level, in seconds. | 0.1 |
| Sustain | Level held after the decay, as a share of the peak (0 to 1). 1 = no fall after the attack; 0 = the envelope is back at rest at the end of the decay. | 0.4 |
| Release | Time to fade from the current level to 0, in seconds. Long = a slow tail after each hit. | 0.3 |
| Hold | One-Shot only: how long the envelope stays at the Sustain level before the release, in seconds. 0 = it releases right after the decay. Not used in Gate mode. | 0.05 |
| Min | Value output when the envelope is at rest. | 0 |
| Max | Value output at the peak of the envelope. Set Min above Max for an envelope that dips. | 1 |
| Mode | One-Shot: each trigger plays the whole envelope (attack, decay, hold, release). Gate: the envelope holds at Sustain while the trigger stays up, and releases when it falls.
| |
| Curve | Shape of each phase. Exponential: fast at the start of the phase, then settling (snappier). Linear: straight ramps.
| |
| Retrigger | What happens when a trigger arrives while the envelope is still playing. Smooth: the new attack starts from the current level, without a jump. From Zero: the envelope drops to 0 first, so every hit looks the same.
|
Outputs
Value, Envelope, Active, Phase
Tips
- For a burst on each kick: Audio Beat into Trigger, One-Shot mode, and Value into the Strength of a force. Shorten Release for a drier hit, lengthen it for a tail.
- With Sustain at 0 and Hold at 0 you get a plain attack-decay hit, the driest shape.
- In Gate mode, feed Trigger with a signal that stays up (a Hand Pinch through a Math Less Than, an Audio Analyzer Value): the envelope lasts as long as the gesture or the sound.
- The Trigger button on the node fires the envelope by hand, to test the shape without music.