Trigger burst generator

Hello everyone

Something I have been struggling to achieve in SuperCollider lately is a trigger burst generator. What I mean by this is:

  • Something that receives a trigger
  • When trigged, it will immediately emit X number of triggers
  • These triggers are spaced at a time interval of Y
  • When done triggering, resets itself and frees itself/waits for next input trigger.

I have been making weird hacks using Drate UGens and Impulse, but the problem with using eg Impulse as the internal clock for this is that if used in NodeProxy land it may be out of phase from when the synth receives the trigger and I want this trigger burst generator to emit triggers immediately when receiving a trigger and not be at risk of the clock/Impulse being halfway through it’s phase.

Does anyone have ideas on this subject?


For something similar, I hacked a version of LFPulse to have a reset parameter. The C++ source and mac binary are here:

This, in combination with a timed envelope, should maybe work for you?


Maybe delay the trigger and feed it back (with a PulseCount to silence the feedback after enough triggers)?


This appears to work:

a = { |num = 6, rate = 3, amp = 0.1, freq = 440|
	var blockdur =;
	var reset =, 1, 0) > 0.5;
	var fb =, 0);
	var trig = fb +, blockdur);
	var count =, reset);
	// borrow '[delay]' idea from Pd/Max (avoid delay line memory)
	// tricky detail: Sweep starts at synth onset;
	// we need to suppress this until the first "go" trigger
	var hasTriggered = > 0;
	var elapsed = * hasTriggered;
	var dur = rate.reciprocal;
	var nextTrig = >= (dur - blockdur), blockdur);
	var eg =, 0.05), trig);
	var sig =;
	// PulseCount under-reports by 1 if it's reset at the same time * (count < (num-1)));

	(sig * eg * amp).dup


1 Like

This absolutely perfect !!! Thank you !