-
... nd([[0, 1, 26, 27], [-6, 4, 10], [0, 8, 14]], inf), // degree t: Pwhite(0, 1) + Pwrand([0, -10, 10], [0.9, 0.05, 0.05], 200), // ctranspose d: 0.2, // dur s: Scale.chromatic24 // scale ]).play ) // define a SynthDef ( SynthDef(\test, { |out ...
-
... ) - random selection from list without repeats Pxrand ([p, q, r], inf ).play // Pwrand( patternList, weights, repeats ) - weighted random selection from list Pwrand ([p, q, r], #[1, 3, 5].normalizeSum, inf ).play // Pwalk( patternList, step ...
-
... a pattern // memory is finite (can only go backward so far) // recommend to use Pwrand for stepPattern -- weights can give an overall positive direction Pscratch : FilterPattern { var <>stepPattern, <>memorySize; *new { |pattern, stepPatter ...
-
... , largeChordWeight=0.3, downChordWeight=0.3, randIntWeight=0.3, walkWeight=0.3; Pwrand([ Pseq(root + [1, 3, 5, 7, 9] - 1, stepsPerMode), Pseq(root + [-3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] - 1, stepsPerMode), Pseq(root + [1, 3, 5 ...
-
... few triplets in ( Pchain( ~swingify, Pbind( \degree, Pseries(-7, 1, 15), \dur, Pwrand([Pn(0.25, 2), Pn(1/6, 3)], [0.7, 0.3], inf) ), (swingBase: 0.25, swingAmount: 0.2, swingThreshold: 0.05) ).play; ) ⧉ ✔ Explanation We need to measure the ...
-
... [ Pbindef(\sayA, \instrument, \sayA, \dur, 1, \onOff, Pwrand([0, 1], [2, 1].normalizeSum, inf), \type, Pswitch( [ \rest, \note ], Pkey( \onOff ) ), \pluck0, 0, \pluck1, Pn(Pbrown(0.04, 0.2, 0.0 ...
-
... ts) - random selection from list without repeats Pxrand([p, q, r], inf).play // Pwrand(patternList, weights, repeats) - weighted random selection from list Pwrand([p, q, r], #[1, 3, 5].normalizeSum, inf).play // Pwalk(patternList, stepPatte ...
-
... pawner { |sp| var notes, dur; loop { notes = Pseries( rrand(-9, -5), Pconst(16, Pwrand([1, 2, 3, 4], [1, 4, 4, 2].normalizeSum, inf)), inf ).asStream.all; dur = exprand(2.5, 6.0); sp.par(Pbind( \instrument, \default, \degree, Pn(Pshuf(notes ...
-
... repeats) -- choose randomly, but never return the same list item twice in a row Pwrand(list, weights, repeats) -- like Prand, but chooses values according to a list of probabilities/weights Other patterns generate values according to variou ...
-
... t, repeats) choose randomly, but never return the same list item twice in a row Pwrand (list, weights, repeats) like Prand, but chooses values according to a list of probabilities/weights Other patterns generate values according to various ...