After a note reaches full volume, the decay stage begins. During this stage, the note falls from peak volume to the sustain level.
Observe that decay is a time duration like attack. Sustain is the level reached after the decay stage is complete.
Try changing the decay time and the sustain level with the sliders below. Press and hold the piano keys to play notes and hear the result.