Rec a pattern to a .gif in Processing || when a pattern is Over?

If you write your “global” variable to a local one, in the scope where you create the Pfset, then Pfset functions can see it:

(
var lightsAddr = ~lightsAddr;
Pfset(
    {lightsAddr.postln},
    Pbind(\dur,1,\note,Pseq((0..1))),
    {lightsAddr.postln}
).play;
)
1 Like