HISE Docs

ahdsr

envelope.ahdsr

An AHDSR envelope generator for shaping audio signals.

Parameters

ID Range Default Description
Attack 0.00 - 10000.00 10.00 Sets the time it takes for the envelope to rise from 0 to the Attack Level. This is the initial phase of the envelope.
AttackLevel 0.00 - 1.00 1.00 Determines the level the envelope reaches at the end of the attack phase.
Hold 0.00 - 10000.00 20.00 Specifies the time the envelope stays at the Attack Level before entering the decay phase.
Decay 0.00 - 10000.00 300.00 Sets the time it takes for the envelope to fall from the Attack Level to the Sustain level.
Sustain 0.00 - 1.00 0.50 Defines the level at which the envelope holds during the sustain phase until the key is released.
Release 0.00 - 10000.00 20.00 Sets the time it takes for the envelope to fall from the Sustain level to 0 after the key is released.
AttackCurve 0.00 - 1.00 0.50 Adjusts the curvature of the attack phase, affecting the shape of the ramp-up.
Retrigger 0.00 - 1.00 0.00 Enables or disables retriggering of the envelope when a new note is played.
Gate 0.00 - 1.00 0.00 Controls the gate signal that triggers the envelope.

The ahdsr_base node is an AHDSR (Attack, Hold, Decay, Sustain, Release) envelope generator used to shape the dynamics of an audio signal over time. This node is a 1:1 replicate of the stock HISE AHDSR envelope modulator.

MIDI Processing

If the envelope is in a MIDI processing context, it will trigger the gate based on the MIDI messages. The envelope can be configured to retrigger when a new note is played (in a monophonic context, as polyphonic envelopes will be rendered for each voice).

Modulation Outputs

In addition to providing modulation outputs, the envelope node also processes the audio signal by applying the envelope to the amplitude of the signal. This allows you to use the envelope node to modulate the gain of the signal directly, without the need to use the modulation outputs.