(pwl t1 l1 t2 l2 ... tn) and (env t1 t2 t4 l1 l2 l3 dur) - start and end with 0, so I found (pwlv l1 t2 l2 t3 l3 ... tn ln)
I thought this one should work, but it didn't. It also produces little fade-in in the beginning and little fade-out in the end.(pwlv l1 t2 l2 t3 l3 ... tn ln) - Creates a piece-wise linear envelope with breakpoints at (0, l1), (t2, l2), etc., ending with (tn, ln)
And one more thing. Using pwl, env and pwlv in Nyquist prompt makes the sound smaller with a few samples.
For example: my source sound contains 140304 samples, after I apply:
Code: Select all
(mult s (pwlv 0 1 1))