-odac sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 instr 1 ; a more complex amplitude envelope: ; |-attack-|-decay--|---sustain---|-release-| aEnv linseg 0, 0.01, 1, 0.1, 0.1, p3-0.21, 0.1, 0.1, 0 aSig poscil aEnv, 500 out aSig, aSig endin i 1 0 1 i 1 2 5 ;example by Iain McCurdy