-
... rand(list, repeats) Choose items from the list randomly (same as list.choose ). Pxrand(list, repeats) Choose randomly, but never repeat the same item twice in immediate succession. Pshuf(list, repeats) Shuffle the list in random order, and ...
-
... }.play, \octave, 3, \scale, Scale.minorPentatonic, \degree, Pn(Plazy{Pseq(Pxrand((0..4),inf).asStream.nextN(4),4)}), \dur, 1/4 ).play; // clean up w.onClose_({ b.free; x.stop; }); )
-
... r while it's trivial with Psmartstutter. p = Psmartstutter ( Pfunc ({ |n| n }), Pxrand ((1..5), inf )).asStream; p.nextN(20); [ 1, 5, 5, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 1, 2, 2, 3, 3, 3, 2 ] If you want lower return values to be repeated more ...
-
... r while it's trivial with Psmartstutter. p = Psmartstutter ( Pfunc ({ |n| n }), Pxrand ((1..5), inf )).asStream; p.nextN(20); [ 1, 5, 5, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 1, 2, 2, 3, 3, 3, 2 ] If you want lower return values to be repeated more ...
-
... [], 0.2, [\instrument, \simpleMorph, \midinote, Pkey(\val) * 30 + 60 + [0, 9] + Pxrand([0, 1.5, -1.5], inf), \amp, 0.07, \morphQ, Pkey(\val) ] ).play(c,q); ) // sync it with a normal pbind (EventStreamPlayer) with default instrument // no u ...
-
... s, Pkey(\dur), \a, 0.4 ); q = Pbind( \instrument, \flute, \freq, Pxrand(parser.asMidi("c5 eb5 g5 bb5 c6").midicps ++ [Rest(), Rest()], inf), \dur, Pbrown(lo:0.1,hi:1.0, step:0.125, length:inf), \a, Pkey(\dur)*0.8, \a ...
-
... ({ Pn(notes.asChord, 1) }, { Pn(notes, 1) }); } => ArpegPat(\block); #{ |notes| Pxrand(notes, inf) } => ArpegPat(\xrand); #{ |notes| Pseq(notes.sort, inf) } => ArpegPat(\up); #{ |notes| Pseq(notes.sort({ |a, b| a > b }), inf) } => ArpegPat( ...
-
... ({ Pn(notes.asChord, 1) }, { Pn(notes, 1) }); } => ArpegPat(\block); #{ |notes| Pxrand(notes, inf) } => ArpegPat(\xrand); #{ |notes| Pseq(notes.sort, inf) } => ArpegPat(\up); #{ |notes| Pseq(notes.sort({ |a, b| a > b }), inf) } => ArpegPat( ...
-
... s.free; ⧉ ✔ as a Pdefn ( p = Pbind( \instrument, \default, \dur, 0.5, \degree, Pxrand((0..10), inf), \amp, o['/1/fader1'].asPdefn, ).play; ) p.stop; ⧉ ✔ as a raw value o['/1/fader1'].value; ⧉ ✔ via a callback on change o['/1/fader1'].callb ...
-
... \root, -5, \octave, Pfunc{{rrand(2, 3)} ! 6}, \degree, Pxrand((0..7), inf).stutter(5), \harmonic, Pfunc{{rrand(1, 8)} ! 6}, \group, [~g0, ~g1, ~g2, ~g3, ~g4, ~g5], \in, [~b0, ~b1, ~b2, ~b3 ...