-
... ajor; a.tuning = \just; k = Key(a); Pbind( \scale, Pfunc({ k.scale }), \degree, Pseq([ Prand(k.scale.degrees, 20), Prout({ k.mode = \minor; 0.yield; }), Prand(k.scale.degrees, 20)], 1) ).play ) ⧉ ✔ helpfile source: /tmp/scquark_hs/TuningLib ...
-
... .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 ...
-
... }; ^argLookup[key] } argAtPath { |path| var obj = this; var key, value; path = Pseq(path.asString.split($/).collect(_.asSymbol), 1).asStream; while { key = path.next; key.notNil and: { value = obj.tryPerform(\argAt, key); if(value.isNil) { ...
-
... toPattern(1,0).play [d.toPattern(1), d.toPattern(2)].ppar(2).play Pdefn(\note1, Pseq([9,1,6,\rest], 1)); Pdefn(\note2, Pseq([\rest,2,1,0, 2], 1)); SynthFile.postAll(\point); SynthFile.read(\point).do{|item| SynthFile.read(\point, item).toSy ...
-
... 25, \degree, Pxrand((0..6), inf), // determines the length of the gate \legato, Pseq([0.8, 0.2], inf), )).play; ) // stop pattern Pdef(\myEuroPattern).stop; // free resources e.clear; ⧉ ✔ Also check out EuroClockIn EuroClockOut for more exa ...
-
... 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 cousin ...
-
... copy; lc=c.copy; ld=d.copy; li=i.copy; lu=u.copy; lv=v.copy; ln=n.copy; li=li ? Pseq([0.0], inf).asStream; loop { newu=lc * (lu.cubed * -0.33333333 - lv + lu + li.next) + lu; lv=ld * (lb * lu + la - lv) + lv; lu=newu; if ((lu > 1.0) || (lu ...
-
... ee, Pstutter(Pwhite(1, 4, inf), Pwhite(-2, 9, inf)) - #[0, 2, 4], \dur, Pwrand([Pseq(#[0.125, 0.375], 1), 0.25, 0.5, 0.75], #[1, 4, 3, 1].normalizeSum, inf), \sustain, max(0.12, Pkey(\dur) * Pwrand(#[0.2, 0.4, 0.8], #[0.6, 0.3, 0.1], inf)), ...
-
... m: Rest(~items[0].item))]; // }; // "rest ++" also works if 'rest' is nil pat = Pseq(rest ++ ~items, 1); if(BP.exists(~bpKey) and: { ~parm != BP(~bpKey).defaultParm }) { pat = pat.collect { |ev, inEvent| if(ev[\item].isNil) { // incumbent o ...
-
... eet0026 {CombL.ar(In.ar(8).tanh/8,1,1,8)!2}.play;Pbind(\amp,8,\dur,1/4,\degree,Pseq(List.fib(32)%(List.fib(64)%12),inf),\out,8).play//#SuperCollider //--tweet0027 play{GVerb.ar(ceil(In ar:8*4+4)-4/10)};Pbind(\dur,2,\legato,Pgeom(0.5,1. ...