Trigger more than one infinite loop

(
5.do{
	arg i;
	Routine{
		inf.do{
			arg j;
			"routine % is on iteration %".format(i,j).postln;
			0.1.wait;
		};
	}.play;
}
)

Hi @loopgo,

Putting an inf.do inside of a routine will give you an infinite loop, so starting 5 routines should do this for you. Notice the .wait, otherwise you’ll hang sclang!

1 Like