-
... , x, \dur, 1/3) ]) ).play; ) x.source = Prand([0, 3, [1s, 4]], inf); x.source = Pn(Pshuf([0, 3, 2, 7, 6], 2), inf); // if quant is set, the update is done at the next beat or whatever is specified: x.quant = 4; x.source = Pn(Pseries(0, 1, 8 ...
-
... {|path| var deepPathMatch, syms, tree; var dir= path.dirname; deepPathMatch= {|pn| var arr= []; pn.pathMatch.do{|x| if(x.last.isPathSeparator, { arr= arr++deepPathMatch.value(PathName(x++"*")); }, { arr= arr++PathName(x); }) }; arr }; syms ...
-
... Event stream; this can even be done inside a Pbind. q = Pbind(\freq, 300, \dur, Pn(0.3, 2)); q.trace.play; // Sound-wise ineffective modification of the incoming stream p = Pbind(\degree, 6) <> q; p.trace.play; // Instead p = Pbind(\degree, ...
-
... eam.all; dur = exprand(2.5, 6.0); sp.par(Pbind( \instrument, \default, \degree, Pn(Pshuf(notes, 1), inf), \pan, sin(Ptime() * rrand(0.8, 1.5) + rrand(0, 2pi)), \dur, PwarpDur( 1 / rrand(18, 30), cycleDur: 1, curve: rrand(1.5, 2.2) * #[-1, 1 ...
-
... the knowledge you have about how for example SinOsc works. Generators PBlip PClipNoise PCuspN PDC PDust PDust2 PExpRand PFBSineN PFSinOsc PGbmanN PHenonN PImpulse PIRand PLatoocarfianN PLFClipNoise PLFNoise0 PLFNoise1 PLFNoise2 PLFPulse PLF ...
-
... defn(\numHits, 5); Pdefn(\numBeats, 12); // can also Pdef(\euclid, Pbind( \hit, Pn(Peuclid(Pdefn(\numHits), 12, 48)), \amp, Pkey(\hit) * 0.2 + 0.02, \instrument, \tic, \ringtime, 0.1, \freq, 2000, \dur, 0.125, )).play; ) Pdefn(\numHits, 2pi ...
-
... ).plot // distorted periodicity by union with random patterns PSVunion_i([4, 7, Pn(Pshuf([2, 5, 9])) ]).asStream.nextN(100).plot PSVunion_i([4, 7, Pwhite(3, 5) ]).asStream.nextN(100).plot ⧉ ✔ 2c) Sequencing logical operations // This is don ...
-
... patterns modify the output of value patterns. These are called FilterPatterns. Pn (pattern, repeats) repeat the pattern as many times as repeats indicates Pdup (n, pattern) repeat individual values from a pattern n times. n may be a numeri ...
-
... means modwheel ) ( p = Pbind( \degree, Pwhite(-7, 12, inf), \dur, Pwrand([0.25, Pn(0.125, 2)], #[0.8, 0.2], inf), \legato, Pfunc { ~legato } // retrieves value set by MIDI control ).play; ) p.stop; c.free; ⧉ ✔ If Pfunc { } is bothersome in ...
-
... , pan)) }).add; ) ( // a fixed duration pattern: f = Pbind( \dur, 0.5, \degree, Pn(4, 1), \instrument, \help_sinegrain ); // this pattern has indetermined length: a = Prand([ Pbind( \dur, Pseq([0.02, 0.002, 0.1, 0.1], 2), \degree, Pseq([9, ...