-
... er); }).store; TempoClock.default.tempo = 16/~amen.duration; ~rhythm = Pseq([8,[2,[1,[1,1,[1,1!3],[1,1!4]]],[1,1!4]]].convertRhythm,1); // Evaluate one of these before playing the Pbind ~rhythm = Pseq([8,[[2,[2,1,[1,1!12]]],[1,[1, ...
-
... lting stream ends when that incoming stream ends ( 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 , { arg out=0, freq=4 ...
-
... d(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 , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( E ...
-
... quires an event to be passed in, often the default event is used: t = Pbind(\x, Pseq([1, 2, 3])).asStream; // Pbind, e.g. creates a stream t.next(Event.default); t.next(Event.default); ⧉ ✔ An event stream cannot be played directly with a cl ...
-
... ming the 45th..50th generation of an l-system ( var z; (45..50).do { arg i; z = Pseq ( "aaa", 1 ).asStream.rewriteString([ "a" -> "bb" , "b" -> "abb" ], i); z.nextN(40).reject(_.isNil).join.postln; } ) // using a stream as axiom has certain ...
-
wiard noise ring variation using a ringbuffer instead of bitshifting, language implementation (pattern-based) by lfsaw (LFSaw) Code
... Integer; var waitTime = 0.05; // in seconds //var chance = 0.1; var chance = Pseq([Pseries(0, 0.1, 10), Pseries(1, -0.1, 10)], inf); var change = 10; // step size Pbind( \midinote, Pswitch1( { Pbrown(min, max, Pif(Prout({ ...
-
... 0 }; ( Pdef(\zed, Ppar([ Pbind( \instrument, \default, \note, Pseq([0,4,Rest(1),-2],inf) + Pseq([Pn(0,8),Pbrown(0,4,1,8)],inf), \dur, 1/4, \amp, 0.1, \sustain, 0.1, \out, ~bus[0], ), Pmono(\simpletrac ...
-
... cyclesDone + 1; sum = 0; }, { sum = sum + item; }); list = list.add(item); }); Pseq(list, inf, offset) }, [ StaticIntegerSpec(-9, 2), StaticIntegerSpec(-9, 2), StaticIntegerSpec(1, 16), StaticIntegerSpec(1, 16), StaticIntegerSpec(0, 16) ], ...
-
... /Simple example ( Alga.boot({ //Our mono sequencer ~seq = AlgaMonoPattern(( in: Pseq([220, 440, 880], inf), time: Pseq([0.05, 0.1, 0.5], inf), dur: 0.5 )); //The AlgaNode to modulate ~sine = AlgaNode({ SinOsc.ar(\freq.kr(440)) }, [\freq, ~s ...
-
... he enclosed pattern and embeds it in the stream. see also Plazy ( a = Ppatmod ( Pseq ([0, 0, 0, 0],1), { arg pat, i; var list; list = pat.list; pat.list = list.put(list.size.rand, 2); }, inf ); x = a.asStream; 30.do({ x.next.postln }); ) Pp ...