-
Pchain: Filter: Description Class methods new Inherited class methods Instance methods '><> Inherited instance methods Undocumented instance methods embedInStream patterns Examples pattern composition Classes | Streams-Patterns-Events > Pat ...
-
... ernC) gets the same result as Pbind(\a, patternA, \b, patternB, \c, patternC) . Pchain(patterns) Chains separate Pbind-style patterns together, so that all their key-value pairs go into the same event. For example, if one part of your code ...
-
... ject Provide an inval for an event stream. Source: Patterns.sc See also: Pkey , Pchain This pattern is mainly used in two cases: using an event pattern as a stream directly a = Pbind(\note, Prand([1, 2, 3], inf)).asStream; a.next; // return ...
-
... n)) }).add; ) Pdef(\x, Pbind(\dur, Pn(0.25, 3), \instrument, \gpdef)); Pdef(\y, Pchain(Pbind(\degree, Prand([5, 9, 0], inf), \legato, Pseq([0.3, 2.2], inf)), Pdef(\x))); Pdef(\z, Pchain(Pbind(\degree, Pseq([0, 2, 5, 7, 8, 9], 1)), Pn(Pdef(\ ...
-
... ng for notes that are too far away from the base rhythmic value. Implementation Pchain applies one pattern to the result of another pattern. So, if we can write a pattern that will modify the events coming from the source, Pchain will be an ...
-
... (\degree, Pseq([g, g, h, g, h], 2), \dur, Pseries(dur, 0.1)) }; // compare: a = Pchain(PlazyEnvirN(f), (g: [1, 2], h: 3, dur: 0.2)).trace(\degree).asStream; c = Pchain(Plazy(f), (g: [1, 2], h: 3, dur: 0.2)).asStream; ) a.nextN(4); c.nextN(4 ...
-
... esDo { |key, val| postf("key: %\t\tvalue: %\n", key, val) }; "" // compare: b = Pchain(Pfsm2(m), (instrument: \mark)); c = Pchain(a, (instrument: \mark)); Ppar([b, c]).play; ⧉ ✔ supermarkov m = MarkovSet.new; // read in 2 files m.parseFile( ...
-
... ; ) // change degree independently of number of events that have been playing ( Pchain( Ppar([ Pbind( \degree, Pbrown(0, 12, 1), \dur, Pstep(Pseq([0.1, 0.2, 0.4, 0.8, 1.6], inf), 3.2) ), Pbind( \degree, Pbrown(0, 20, 1), \dur, Pstep(Pseq([0 ...
-
... izeSum, inf) * 0.15, \amp, 0.1, ); p.quant = 0; // wrap in a monophonic player (Pchain), and Syn-ify it (Pmsyn) q = Pmsyn(Pchain(Pmono(\pm, \dummy, 1), p)).play; ); // "...Plug" syntax (see Syn help examples) ( p.set(\ratioPlug, { |ratio| P ...
-
... same durations, two streams ⧉ ✔ For more about the composition operator <> see: Pchain . Some parameters, like duration, cannot be used in the form of an array in the Pbind . For full parallel expansion see PlazyEnvirN . helpfile source: /u ...