From Function to Pdef

Thank you Shiihs,

to use Pmono without killing the synth all the time it’s a really nice way to solve it!
So changing the amp I could “cut” the phrases, and I also like the Pwhite, Pgeom in the freq, it sounds much more similar to an LFO compared to my solution.

In the end, I tried to make everything a little more metric, to see how it sounds, maybe a little too rigid for my goal, but it gives me more control. I have to keep fix it. I had also considered the possibility of using a solution where I use a sin function * Pwhite()

Event patterns and LFOs | SuperCollider 3.11.2 Help (basislager.org)

Aayway for now I’m here:

(
SynthDef(\imp, { arg out=0, pos =0;
var sig = Impulse.ar(0);
	var pan = Pan2.ar(sig,pos);

	OffsetOut.ar(out,FreeSelf.kr(pan));

}).add;
)

Synth(\imp);



(

var pause = Pseq([Rest(4)],1);

Pdef(\impulses,
	Pbind(\instrument, \imp,
		\dur, 1/Pwrand([
			Pseq((16!16),1),
			Pseq((12!12),1),
			Pseq((9!9),1),
			Pseq((8!8),1),
			Pseq((6!6),1),
			Pseq((4!4),1),
			Pseq((3!3),1),
			Pseq((2!2),1),
			pause,
],[1,1,1,1,1,1,1,1,9].normalizeSum, inf),
	\pos,Pstutter(8,Pxrand([-1,0,1],inf).trace(prefix:"POS: "))
	
)).play;
)