Converting trigger to modular gate

Another question related to combining SuperCollider with modular gear via an ES-8. For envelopes, SC uses (near instantaneous?) triggers but for Eurorack I need these to be gates of some duration. I see could do this with envelopes, but I’m wondering if there isn’t some standard conversion thing?

trig = Impulse.ar(trigFr);
env = EnvGen.ar(
  Env([1, 1, 0, 0], [0, 0.1, 0.1], [\hold, \hold, \hold]),
  gate: trig,
   timeScale: 1/trigFr
);

Is there a better way?

You can do it with Trig1

// one trig every second, every trig lasts 0.5 seconds
Trig1.kr(Impulse.kr(1),0.5)

image

That works perfectly. Thank you.