-
... hroughout the example sp.par( Pbind (*[ degree: [0,7], octave: 7, dur: 0.2, db: Pseq ([-20, -24, -22, -24], inf )]) ); // scales in sequence with pauses sp.seq( Pbind (*[ degree: Pseq ((0..7).mirror), dur: 0.2]) ); sp.wait(0.4); sp.seq( Ppa ...
-
... s with at least as many elements as there are keys. Examples ( a = Pbind ( \x , Pseq ([1, 2, 3]), \y , Prand ([100, 300, 200], inf ), \zzz , 99); x = a.asStream; ) x.next(()); // pass in an event () x.next(()); x.next(()); x.next(()); // en ...
-
... is is the cross adverb, 'x'. Normally when you add two streams like this: p = ( Pseq ([10, 20]) + Pseq ([1, 2, 3])).asStream; Array.fill(3, { p.next }); you get this: [ 11, 22, nil ] The items are paired sequentially and the stream ends whe ...
-
... that incoming stream ends. see also: Pmulp , Padd ( var a, b; a = Paddp (\freq, Pseq([2, 3, pi],inf), Pbind ( \freq , Pseq([100, 200, 300]))); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , ...
-
... value is kept. see also : StreamClutch , Pstutter , Latch // example: Pclutch ( Pseq ([1, 2, 3, 4, 5], 3), Pseq ([0, 0, 1, 0, 0, 0, 1, 1])).asStream.nextN(10); // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0 ...
-
... that incoming stream ends. see also: Pmul , Paddp ( var a, b; a = Pmulp (\freq, Pseq([2, 3, pi],inf), Pbind ( \freq , Pseq([100, 200, 300]))); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , ...
-
... get more complex results. Patterns within list patterns We saw list patterns ( Pseq , Prand , etc.) that returned numbers from a preset list, either in the order given or rearranged randomly. The list may also include other patterns. When ...
-
... lting stream ends when that incoming stream ends. ( var a, b; a = Psetp (\freq, Pseq([801, 1008],inf), Pbind ( \dur , Pseq([0.5, 0.111, 0.22]))); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) Psetp overrides incoming values: ( va ...
-
... 2), \dur , Prand (#[0.2, 0.5, 1.1, 0.25, 0.15], inf ) ); b = Pbind ( \degree , Pseq (#[0, 2b, 3], 1), \dur , 2, \ctranspose , -7 ); Pseq ([ Event .silent(1.25), Ppar ([a, b])], inf ).play; ) // test tempo changes ( var a, b; a = Pbind ( \d ...
-
... rical pattern // examples: // divide 1 into various proportions ( a = Prorate ( Pseq ([0.35, 0.5, 0.8]), 1); x = a.asStream; x.nextN(8) ) // divide a pattern into various proportions ( a = Prorate ( Pseq ([0.35, 0.5, 0.8]), Prand ([20, 1], ...