Call function again in Pbind after 1 sequence

(
Pbind(
	\instrument, \line1,
	\dur, Pseq(~func.(), 1);
).play;
)

This is a simple Pbind code for one instrument with play 4-bar sequence with ~func.()
after 4 bar, I would like to call a ~func.() again to generate different duration pattern.
how to call again ~ func.() in the Pseq??

I think It is not that hard, but I don’t know how to do it.

This way treats the entire Pbind as a four-bar phrase – any other parameters in the Pbind would be linked to the dur regeneration.

Pn(
	Plazy {
		Pbind(
			\instrument, \line1,
			// note, semicolon isn't really appropriate here
			\dur, Pseq(~func.(), 1)  //;
		)
	},
	inf
)

Alternately, if you’re only interested in the rhythm regenerating after 4 bars, it could be like this:

Pbind(
	\instrument, \line1,
	\dur, Pn(
		Plazy { Pseq(~func.(), 1) },
		inf
	)
)

… where any other parameters you add into Pbind would be independent of the dur pattern.

hjh

I’ve never tried Pn, but I think it works.
I re write the code with play options.

(
Pbind(
	\instrument, \line1,
	\dur, Pn(
		"done 1".postln;
		Plazy { Pseq(~func.(), 1) }, inf;
		
	);
).play;
)