Re: Integrating Events and Patterns
[email protected] Tue, 8 Jun 2021 17:44:29 +0200
| Newsgroups | gmane.comp.audio.supercollider.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, you’re refering to this thread: https://www.listarc.bham.ac.uk/lists/sc-users-2014/msg40239.html PbindefEvent makes an Event from a Pbindef, so actually I don’t get the usage in this new example. Wouldn’t you want the opposite ? Like e = ( 'sus': Pwhite(0.5, 0.8), 'rel': Pwhite(0.01, 0.3), 'degree': Pseq([ 0, 2, 3, 4 ], inf), 'dur': Pseq([ 0.2 ], inf), 'octave': Prand([ 5 ], inf), 'dec': Pseq([ 0, 2, 3, 4 ], inf), 'instrument': nil); Pbindef(\e, *e.asKeyValuePairs).play Pbindef(\e).stop By the way: as the thread is from 2014: you might want to check out PLx patterns (from 2015) and especially PLbindef / PLbindefPar (2016), wrappers of Pbindef that attempt to shorten replacement syntax. Greetings Daniel ----------------------------- http://daniel-mayer.at -----------------------------