-
// some new patterns - jamshark70@dewdrop-world.net Pwxrand : Pwrand { embedInStream { |inval| var item, weightStream = weights.asStream, currentWeights, index = weightStream.next(inval).windex, totalweight, rnd, runningsum; repeats.value(i ...
-
... 00,[0,5,7,10]),inf); deg4 = Pn(Pstutter(100,[0,5,7,11]),inf); envlen1 = Pwrand([0.01,0.02,0.03,0.1,0.2,0.3,1,2,3],[0.0,0.0,0.1,0.0,0.1,0.1,2,2,2],inf); envlen2 = Pwrand([0.01,0.02,0.03,0.1,0.2,0.3,1,2,3],[0.2,0.2,0.1,0.1,0.6,0.1, ...
-
... , 1, \vibratoSpeed, Pwhite(6,8), \vibratoDepth, Pwhite(0.5, 1.5), \vowel, Pwrand([0, 1, 3], [0.8, 0.1, 0.1], inf), \legato, 2, // notes overlap \att, 1.1, // softer attack \rel, 2.5 ).play; ) // Example 3: using Pmono ( P ...
-
... var delta, dur, note; dur = Prand([10, 15], inf).asStream; note = Pwrand([145, 290], [0.8,0.2], inf).asStream; while { delta = dur.next; delta.notNil } { Synth(\bass,[freq ...
-
... mp, 0.35, \decay, 50, \coef, 0.1, \vibratoRate, Pgauss(0.0, 1.0), \dur, Pwrand([Prand([0.51, 0.1, 0.1], 4), Pwhite(0, 4, 8), Pwhite(0, 1, 4)], [0.9, 0.05, 0.05] , 4), \pan, Pwhite(-1, 1) ); ) // Freq3 ( ~freq3 = Pbind( \i ...
-
... rownian motion Plprand Phprand Pmeanrand Pbeta Pcauchy Pgauss Ppoisson Pexprand Pwrand ([ 1, 2, 3 ], [0.1, 0.3, 0.6], 20); // choose from a list, probabilities by weights Pshuf ([ 1, 2, 3, 4 ], 2); // scramble the list, then repeat that ord ...
-
... r), \scale, Pfunc({m.scaleChord([0,2,4,6])}), \octave, 5, \ctranspose, Pwrand([0,Pstutter(Pwhite(1,4),Pseq([-1]))],[0.95,0.05],inf), \base, Pstutter(Pwhite(1,8),Pbrown(1,4,1,inf)), \degree, Prand([ Pseq([0,1,[1,2,3,4]],in ...
-
... s converted to midinote, not just frequency \degree, Pwhite(-7, 12, inf), \dur, Pwrand([0.25, Pn(0.125, 2)], #[0.8, 0.2], inf), \legato, sin(Ptime(inf) * 0.5).linexp(-1, 1, 1/3, 3), \amp, Pexprand(0.5, 1.0, inf) ).play(quant: 1); ) p.stop; ...
-
... ) }), \end, Pfunc({ rand(~buf.numFrames) }), \dur, Pn( Pseg( Pwrand([ 0.1, 0.2, Pseq((1/7)!7, 1), Pseq((1/3)!3, 1), 0.5, Pxrand([0.7, 0.3], 1) ], [1, 10, 5, 8, 3].normalizeSum, ...
-
... next_prob = self.storage[key]; next = Pwrand(next_prob[0], next_prob[1], 1).asStream.next; } }; }; }); // generate slightly better than random ...