You can also isolate the envelope shape:
s.boot;
b = Buffer.alloc(s, 44100/64*5, 1);
(
{
var a, /*b, */menv, multer, bw, triggie;
bw = 88;
triggie = Impulse.kr(1);
menv = EnvGen.kr(Env([0, 1, 0], [3, 1], [0, -20]), gate: triggie, doneAction: 0);
RecordBuf.kr(menv, b, loop: 0, doneAction: 2);
Silent.ar(1)
}.play.onFree({ defer { b.plot } });
)
So the trigger is taking effect (otherwise it would just be a straight line).
hjh