-
... that approach cannot confine its changes to the one stream making the changes). Plazy offers an alternate approach: use a function to generate a new pattern object periodically, and play these patterns in succession, one by one. (Plazy embe ...
-
... 1, 2, 3 // n -> 1, .., n ~accumulate = { arg x, palindrome=false; Pn( Plazy({ var n = x.next(); var pat; if(palindrome, {pat = Pseq((1..n).mirror)}, {pat = Pseq((1..n))} ); pat; }) ).asStream; } ...
-
... / from sc3-plugins }).add; ) ( // now the rest ~dur = {|len1=4, len2=3| Plazy({ var dur = len1; inf.do{|n| var overlap = (n % len1 == 0) || (n % len2 == 0); if(n>=len1 && dur==len1 && overlap, { dur=len2; ...
-
... ns subclasses of Pdef Examples Ex. 1a: ListPatterns placeholder constructs with Plazy Ex. 1b: PLx implementation of ListPatterns Ex. 1c: PLx implementation of Non-ListPatterns Ex. 1d: Plain PL Ex. 2: Playing in different Environments Ex. 3: ...
-
PlazyEnvir instantiate new patterns from a function superclass: Plazy Evaluates a function that returns a pattern and embeds it in a stream. In difference to Plazy , the function is evaluated using the environment passed in by the stream Pl ...
-
... s, but also Patterns itself. So Patterns including functional code (e.g. Pfunc, Plazy, Pcollect) can, thanks to dynamic scoping, turn into different Streams, depending on the environment where streamifying happens ( Event patterns and Funct ...
-
... ttern engaging Functions, thus allowing to benefit from environment-dependance: Plazy. it evaluates a Function that returns a Pattern to be embedded in a stream. For repeated embedding the Plazy can be wrapped into a Pn. If a generated Patt ...
-
... ttern engaging Functions, thus allowing to benefit from environment-dependance: Plazy. it evaluates a Function that returns a Pattern to be embedded in a stream. For repeated embedding the Plazy can be wrapped into a Pn. If a generated Patt ...
-
... Examples of use: // play all palestrina melodies in random order ( Pdefn(\mel, Plazy({ Pseq(c.pAll.choose) })); Pdef(\pale, Pbind( \amp, 0.2, \octave, 4, [\note, \dur], Pn(Pseq([ [\a, 0], Pdefn(\mel), [\o, 4]], inf)).trace, \tempo, 2 )).pl ...
-
... Pfset Pmul Padd Psetp Pmulp Paddp Pfindur other Patterns Pwhite Pbrown Ppatmod Plazy Pbind Phid PstepNadd PstepNfunc Streams BinaryOpStream UnaryOpStream EventStream EventStreamPlayer to be continued...