The Envelope
Almost everything audible in nature undergoes changes over a certain period of time. Sometimes a sound (or noise) becomes loud very quickly and then fades away just as quickly. Sometimes it gets loud briefly and then becomes quieter, or it takes a very long time to reach its maximum volume before suddenly stopping.
In general, we can say that almost everything we hear has a certain progression in terms of its volume or timbre. To make this possible with a synthesizer, we need an envelope.
An envelope is triggered by a trigger signal, which is often generated by pressing a key on a keyboard. In principle, an envelope can be applied to various synthesizer parameters. Most commonly, it is applied to the volume or the filter frequency. In this section, we will focus on its application to volume.
ADSR
An envelope has four different parameters: Attack, Decay, Sustain, and Release. These are usually abbreviated as ADSR.
For Attack, Decay, and Release, a time duration is specified, usually measured in milliseconds (ms). Sustain is slightly different because it does not describe a time-based progression, but rather a level. When an envelope is applied to volume, Sustain determines the volume level.

Attack
Attack specifies how long it takes to reach the maximum level. For example, if you apply a long Attack time to the volume, it will take a while for the synthesizer to reach its maximum volume.
Decay
Decay specifies how long it takes to reach the Sustain level after the Attack phase. Therefore, Decay only has an effect when Sustain is set below 100%, because otherwise there is no difference between the maximum level reached during Attack and the Sustain level.
Sustain
Unlike the other three parameters, Sustain does not specify a time-based progression, but rather a level, which can be set to a maximum of 100%. This level is reached after the Attack and Decay phases.
Release
Release is the fade-out time. It becomes active when the original trigger signal is no longer present. For example, when you press a key on a synthesizer keyboard and an envelope is applied to the volume, the Release phase begins as soon as the key is released.
Here is an opportunity to try it all out for yourself: