How to send a trigger with every event when using Pbind "type,\set"

Hi!

Is it possible to send a trigger with each event when Pbind is “\type, \set”?
I would like to trigger an envelope each time an event occurs. I have posted an example code below.

thank you!!


(
SynthDef(\test,{
	|
	t_trig=1,duration
	|
	var env=Env.new(levels: [ 1, 1, 1, 1,0 ], times: [0.25,0.25,0.25,0.25], curve:[-5, 0, 5,1]);
	var envGen=EnvGen.ar(env, gate: t_trig, levelScale: 1.0, levelBias: 0.0, timeScale: duration, doneAction: 0);
	var output=	Out.ar(0,	envGen!2);
}).add;
)


x = Synth(\test);


(
Pdef(\one,
	Pbind(
		\instrument, \test,
		\type, \set,
		\t_trig,Pseq([1],inf),
		\duration, Pseq([1,0.1,2],inf),
		\dur, Pkey(\duration)
	)
).play;
)