-
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 ...
-
Pchain pass values from stream to stream superclass: Pattern Pchain(pattern1, pattern2, ... patternN) pattern1 <- pattern2 <- ...patternN pattern1, pattern2.. the patterns to be chained up. Values produceed by the stream of pattern2 are use ...
-
... ternC) 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 ...
-
... ) 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, ...
-
... 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 ...
-
... ey { |key| patternpairs.pairsDo { |k, val| if(k === key) { ^val } }; ^nil } } + Pchain { atKey { |key| patterns.do { |p| if ( p.class == Pbind ){ ^p.atKey( key )}; }; ^nil } } + PatternProxy{ atKey{ |key| ^source.atKey( key ) } } /* + Pdef{ ...