-
... aced in the event // So, it can be spawned \pattern , Pfunc { Pbind ( \degree , Pseries (rrand(0, 10), #[-1, 1].choose, rrand(4, 10)), \dur , 0.125) }, \delta , Pwhite (1, 5, inf ) * 0.125, \method , \par )).play; ) p.stop; // Same, using a ...
-
... m first stream 4.do({ c.next.postln; }); // print 4 values from second stream ) Pseries is a Pattern that generates an arithmetic series. ( var a, b; a = Pseries .new(10, 3, 8); // stream starts at 10, steps by 3 and has length 8 b = a.asSt ...
-
... t placed in the event // So, it can be spawned \pattern, Pfunc { Pbind(\degree, Pseries(rrand(0, 10), #[-1, 1].choose, rrand(4, 10)), \dur, 0.125) }, \delta, Pwhite(1, 5, inf) * 0.125, \method, \par )).play; ) p.stop; // Same, using a dicti ...
-
... ef(\x, Pbind( \type, \dirt, \s, Pn(Pshuf([\bd, \hh, \cp, \imp], 5)), \begin, Pn(Pseries(0, 0.002, 20)), \dur, 0.1, \legato, Pwhite(0.01, 0.4) ) ).play; ) // using a filter ( Pdef(\x, Pbind( \type, \dirt, \s, Pn(Pshuf([\bd, \hh, \cp, \imp], ...
-
wiard noise ring variation using a ringbuffer instead of bitshifting, language implementation (pattern-based) by lfsaw (LFSaw) Code
... r; 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({ chanc ...
-
... d; ) ( Pdef(\x, Pwavesets( Pbind( \name, \a11, \instrument, \ws1848, \start, Pn(Pseries(0, 1, 1848)), \num, 2, \repeats, 10, \rate, 1, \legato, 2.0, \amp, 0.1, \pan, Pbrown(-0.5, 0.5, 0.001) ) ) ).play ) // a synthdef that fills the gaps (l ...
-
... an array as the "key" for the key/value pair. p = Pbind (#[x, y, z], Ptuple ([ Pseries (0, 1, inf ), Pgeom (1, 2, inf ), Pwhite (1, 10, inf )], inf )).asStream; p.next(()); ( 'y': 1, 'x': 0, 'z': 6 ) ( 'y': 2, 'x': 1, 'z': 6 ) ( 'y': 4, 'x ...
-
... an array as the "key" for the key/value pair. p = Pbind (#[x, y, z], Ptuple ([ Pseries (0, 1, inf ), Pgeom (1, 2, inf ), Pwhite (1, 10, inf )], inf )).asStream; p.next(()); ( 'y': 1, 'x': 0, 'z': 6 ) ( 'y': 2, 'x': 1, 'z': 6 ) ( 'y': 4, 'x ...
-
... t stream 4.do({ c.next.postln; }); // print 4 values from second stream ) ⧉ ✔ A Pseries is a Pattern that generates an arithmetic series. ( var a, b; a = Pseries.new(10, 3, 8); // stream starts at 10, steps by 3 and has length 8 b = a.asStr ...
-
... i , \sin ); // chars for the string, event patterns or events ~a = Pbind ( \m , Pseries (60, 2, 4)) <> ~x ; ~b = Pbind ( \m , Pseries (80, -2, 8)) <> ~x ; ~c = (i: \saw , m: [95, 96, 97], d: 0.8); // define sequence ~p = "aab" ) // symplay ...