-
... ns inside ( Pdef(\kick, Pbind( \instrument, \kick, \dur, Pgrids(\kick, density: Pseq([0.3, 0.6], inf), x: 0.5)*2, )).clock_(t).play; Pdef(\hh, Pbind( \instrument, \hh, \dur, Pgrids(\kick, density: 0.5, y: Pseq([0.2, 0.5, 0.1], inf), x: Pseq ...
-
... asStream; 9.do({ x.next(Event.new).postln }); ) ⧉ ✔ ( var a, b; a = Pmul(\freq, Pseq([3, 4, 6], 2), Pbind(\freq, 100)); x = a.asStream; 9.do({ x.next(Event.new).postln }); ) ⧉ ✔ // sound example ( SynthDef(\sinegrain, { |out = 0, freq = 440 ...
-
... ing with the buffers b.selectionAction_({|selectedBuffers| Pdefn(\polySelected, Pseq(selectedBuffers, inf)) }); // SynthDef SynthDef(\polybuf_sampler,{|out=0, amp=0.5, buffer, rate=1| var sig = PlayBuf.ar(numChannels:2, bufnum:buffer, rate: ...
-
... = -1; ~hiDev = 1; ~lookBack = 2; p = Pbind( \dur, 1/7, \midinote, PLIdev( Pseg(Pseq([65, 90], inf), 5, \sin).round, 11, \loDev, \hiDev, \lookBack ).trace(prefix: "midi "), ).play; ) // widen range and increase lookBack ( ~loDev = -6; ~hiDe ...
-
... gate,levelScale: fenvmod), rq) * EnvGen.kr(envadsr,gate,0.2, doneAction: 2) },[ Pseq((70 + [ 0, 1, 5, 6, 10 ]).midicps ,inf) * Prand(2 ** [0,-1,2,-2,-3],inf), // octave shifts 0.2, Patch({ LFTri.kr(0.1,[0.0,0.5],0.5,0.5) }), Env.adsr(0.3,su ...
-
... nd(0.1, 2.0) + #[1, 2, 3, 6].choose }, 2); b = Pfuncn({ #[-2, -3].choose }, 2); Pseq([a, b], inf).asStream.nextN(20).postln; ) ⧉ ✔ Sound example ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(En ...
-
... y(\hit) * 0.2, \instrument, \tic, // emphasize beat 1 with a lower pitch \freq, Pseq([[1000, 2000], 2000].clipExtend(12), inf), \dur, 0.125 ).play ); // play all euclidian subdivisions of length 12, from 1 - 12 // add ghost notes to hear gr ...
-
... . pattern . pattern = value . repeats . repeats = value Examples ( a = Ppatmod( Pseq([0, 0, 0, 0], 1), { |pat, i| var list; list = pat.list; pat.list = list.put(list.size.rand, 2); }, inf); x = a.asStream; 30.do({ x.next.postln }); ) // Ppa ...
-
... with different start times ( x = Pbind( \instrument, \help_sinegrain, \degree, Pseq(#[0, 5, 4, 2, 1, 1, 3], inf), \dur, Pseq(#[0.25, 0.5, 1.0], inf), \scale, #[0, 3, 5, 9, 10] ); a = Pbus(Pgtpar([0.0, x, 1.5, x, 2.25, x])).play; ) s.plotTr ...
-
... use, languages: ( minimouse: {|code, event| var output; output = Pbind(\degree, Pseq(code.ascii).trace % 24, \dur, event[\dur] ? 0.1); event.put(\result, output) }, maximouse: {|code, event| var output; output = Pbind(\freq, Pseq(code.ascii ...