-
... (keys.size * 2); keys.do({ |key| if(key.envirGet.notNil) { pairs.add(key).add( Pseq (key.envirGet, 1)) }; }); pairs }, // identify rests in the rhythm array // (to know where to stick notes in) getRestIndices: { |array| var result = Array ...
-
... ng simple - the higher the note, the shorter the length ( p = Pbind ( \degree , Pseq ([ Pseries (-7, 1, 14), Pseries (7, -1, 14)], inf ), \dur , 0.25, // \degree is EARLIER in the Pbind \legato , Pkey ( \degree ).linexp(-7, 7, 2.0, 0.05) ). ...
-
... f" , { arg out=0; Out .ar(out, PinkNoise .ar(0.1)) }).play; ) Pbind ( \degree , Pseq ([0, 1, 2, 3], inf )).play; // Pattern Polymorphism allows you to write code that does not assume anything about the implementation of an object, but rathe ...
-
... od, which // forwards softPut to their envirs: Pdef ( \test , Pbind ( \degree , Pseq ((0..7), inf ))).play; Pdef ( \test ).set( \amp , 0.03) Pdef ( \test ).envir.softPut( \amp , 0.06); // no, too big Pdef ( \test ).envir.softPut( \amp , 0.0 ...
-
... 0, 30, 100) }; ~lfo2 = { LFClipNoise .kr(3, 100, 200) }; ~lfo3 = StreamKrDur ( Pseq ([ Prand ([530, 600],1), 700, 400, 800, 500].scramble, inf ) / 3, 0.2); ~out.xmap( \ffreq , ~lfo2); ~out.xmap( \ffreq , ~lfo); ~out.xmap( \ffreq , ~lfo3); ...
-
... o next , so that Pbind has somewhere to put the values. ( p = Pbind ( \degree , Pseq (#[0, 0, 4, 4, 5, 5, 4], 1), \dur , Pseq (#[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1], 1) ).asStream; // remember, you have to make a stream out of the pattern befo ...
-
... tpar with separate groups for the subpatterns. An excellent example of Ppar and Pseq used together to structure an entire piece (Kraftwerk's "Spacelab") can be found in examples/pieces/spacelab.scd . Dynamic parallelizing Ppar and its cousi ...
-
... .05).dup }; // impulse uses tempo ~x = Pbind ( \instrument , \default , \freq , Pseq ([300, 400], inf )); // pattern uses tempoclock p.clock.tempo = 1.0; // set the tempo to 1 p.clock.tempo = 2.2; // set the tempo to 2.2 ~x.free; ~y.free; d ...
-
... roxy , and NodeProxy_roles // setsrc ( Ndef ( \x , \setsrc -> Pbind ( \source , Pseq ([ { LFTri .ar(280 * Line .kr(1.1, 0.4, rrand(2, 3)) + [0,1]) * 0.1 }, { Pulse .ar(40 + [0,1]) * 0.1 }, { LFTri .ar( LFTri .kr(1).round(1.0.rand) + 1 * 180 ...
-
... \x , Pbind ( \instrument , \gabor , \freq , 1000, \dur , 0.01, \width , Pseg ( Pseq ([0.25, 0.002], inf ), 10, \exp ), \legato , 2 ) ).play ) // compare with sine grain. ( SynthDef ( \gabor , { |out, i_freq = 440, i_sustain = 1, i_pan = 1, ...