How to stop a forked Pdef?

hi,

I’m trying out using .fork instead of .play on a PDef, to get multiple instances of the PDef playing. Is there a way to stop a forked PDef?

At the moment, the PDef has some patterns with length set to ‘inf’, so they just keep going. Would be great to know if there’s a way to stop them!

Thanks-

Ok just got it - just assign it to a variable, i.e.

a = Pdef(\x).fork;
b = Pdef(\x).fork;

a.stop;
b.stop;

thanks.