Trapezoidal envelope generator. The arguments are: 1. shape
determines the sustain time as a proportion of dur, zero is a
triangular envelope, one a rectangular envelope; 2. skew determines
the attack/decay ratio, zero is an immediate attack and a slow decay,
one a slow attack and an immediate decay; 3. duration in seconds;
4. amplitude as linear gain.