-
... fn(\b) - Pdefn(\a)); // (re)define Pdefn(\c) 8.do { t.value.postln }; Pdefn(\a, Prand([1, 4, 2], inf)); // (re)define Pdefn(\a) ⧉ ✔ Embedding Pdefn in other patterns Pdefn(\x, Pseq([1, 2, 3], inf)); x = Pseq([0, 0, Pdefn(\x)], inf).asStream ...
-
... .ar(Env.perc(0.01, sustain), 1, doneAction: Done.freeSelf); 5.do { var d; d = exprand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 1.2) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, 0, amp * env), pan)); }).add; ) Pbindef(\a, ins ...
-
... iable later on. Can be dynamically replaced by Patterns or Streams. Defaults to Prand([1, -1], inf). direction Symbol or Pwalk directionPattern arg. If a Symbol is passed, repeats can be assigned to an envir variable later on. Can be dynami ...
-
... .kr(Env.perc(0.03, sustain), 1, doneAction: Done.freeSelf); 3.do { var d; d = exprand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 1.2) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, 0, amp * env), pan)); }).add; ) Pdef(\metronom, ...
-
... [[500, 501, 700]], sustain: 2).play ) ⧉ ✔ ( Pbind(*[ instrument: \multi, freq: Prand([ [[100, 141, 103]], [[100, 310, 190]], [[100, 100.1, 110]], ], inf), dur: 0.2, sustain: 0.3 ]).play; ) ⧉ ✔ multichannelExpandRef This method is called in ...
-
... eSelf) ) }).store; ) // new pattern ( p = Pbind( \instrument, \helpscore, \dur, Prand([0.3, 0.5], inf), \freq, Prand([200, 300, 500], inf) ); ) // make a score from the pattern, 4 beats long z = p.asScore(4.0); z.score.postcs; z.play; // re ...
-
... { |out| var sound; Environment.use({ // set values in the environment ~freq = exprand(80, 600); ~amp = 0.1 + 0.3.rand; ~pan = 1.0.rand2; // call a randomly chosen instrument function // with values from the environment sound = [a,b,c].choos ...
-
... re 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 a list ...
-
... ist's values in order Pshuf (list, repeats) scramble the list into random order Prand (list, repeats) choose from the list's values randomly Pxrand (list, repeats) choose randomly, but never return the same list item twice in a row Pwrand ( ...
-
... * EnvGen.kr(env,doneAction: 2) },[ Sample("a11wlk01.wav"), Pbrown(0,1,0.1,inf), Prand( Array.fill(4,{ Pseries(rrand(-20,30),[2,-2].choose,rrand(5,20)) }),inf).midiratio, Env.sine(0.2,0.4) ],0.06).play ) ⧉ ✔ Class Methods . latency . new Arg ...