[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Re: Pattern



Patterns are fixed once they're created. Sometimes you can get around this by
wrapping them in Pfunc, which will force evaluation every time an event is
demanded:

\degree, Pfunc({Pn(Pseries(0,1,~c),inf)})

But in this case (I don't have Supercollider to hand), I expect what will
happen is that the Pseries pattern will be instantiated anew every time, and
therefore output an endless series of 1s.

This *might* work, but like I said I can't test it right now:

\counter, Pseries(0,1,inf),
\degree, Pfunc({|e| if (e.counter > ~c, nil, e.counter)})



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Pattern-tp7629661p7629693.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/