ADSR envelope in Strudel shapes each note's amplitude over four stages: attack, decay, sustain, release
Strudel exposes the standard four-stage amplitude envelope via .attack(), .decay(), .sustain(), and .release() (or the shorthand .adsr("a:d:s:r")). Attack is the time to reach peak amplitude; decay is the time to fall to sustain level; sustain is the held amplitude (not a time value); release is the fade-out after the note ends. Short attack + short release gives a percussive pluck; long attack + long release gives a pad. This is called with .adsr(".1:.1:.5:.2") in idiomatic Strudel.
Examples
note(“c”).sound(“piano”).attack(.5).release(.5) // soft pad note(“c”).sound(“piano”).adsr(“.01:.1:.5:.1”) // plucky
Assessment
Describe the sound produced by .adsr(“0:.1:1:.01”) versus .adsr(“.5:0:1:1”). Which sounds more percussive?