-
Pwrand embed values randomly chosen from a list superclass: ListPattern returns one item from the list at random for each repeat, the probability for each item is determined by a list of weights which should sum to 1.0. ( var a, b; a = Pwra ...
-
... ( Pwhite ) return one element before yielding control back to the "selector" ( Pwrand ). \degree , Pwrand ([ Pwhite (-7, 11, 1), Pwhite (7, 18, 1)], #[0.7, 0.3], inf ) This does not work if the ranges need to keep their own integrity. For ...
-
... fining pitch material, then combine them with Pchain . ~rhythm = Pbind ( \dur , Pwrand (#[0.125, 0.25, 0.5], #[0.3, 0.5, 0.2], inf ), \legato , Pwrand (#[0.1, 0.6, 1.01], #[0.1, 0.3, 0.6], inf ) ); ~melody = Pbind ( \degree , Pwhite (-4, 11 ...
-
... / num: 1 means modwheel ) ( p = Pbind ( \degree , Pwhite (-7, 12, inf ), \dur , Pwrand ([0.25, Pn (0.125, 2)], #[0.8, 0.2], inf ), \legato , Pfunc { ~legato } // retrieves value set by MIDI control ).play; ) p.stop; c.remove; If Pfunc { } i ...
-
... (should sum up to 1.0) length number of values to return structurally related: Pwrand , TWindex , TWChoose see also: Demand // example ( { var a, freq, trig; a = Dwrand ([0, 1, 2, 7], [0.4, 0.4, 0.1, 0.1], inf ).dpoll; trig = Impulse .kr( ...
-
... ts7 ] - Practical Considerations Specific classes: ListPatterns Pseq Pser Prand Pwrand Pxrand Pshuf Place Ptuple Pslide Pfsm Place ... FilterPatterns Pseed Prewrite Pswitch Pswitch1 Pn Pstutter Pfin Psync Pcollect Pselect Preject PdurStutte ...
-
... ach repeat, but Pxrand never repeats the same element twice in a row. see also: Pwrand ( var a, b; a = Pxrand .new(#[1, 2, 3], 10); // return 10 items b = a.asStream; 11.do({ b.next.postln; }); ) Pxrand used as a sequence of pitches: ( Synt ...
-
... th a randomly generated rhythm. The catch is that we have no assurance that the Pwrand \dur pattern will add up to exactly 4 beats. The Pfindur ("finite duration") pattern cuts off the inner Pbind after 4 beats. This would stop the pattern, ...
-
... tern Embed one item from the list at random for each repeat. see also: Pxrand , Pwrand ( var a, b; a = Prand ([1, 2, 3, 4, 5], 6); // return 6 items b = a.asStream; 7.do({ b.next.postln; }); ) // return also a subpattern: ( var a, b; a = Pr ...
-
... switch [ Pswitch1 ] ListPattern [ Pwalk Pslide Ptuple Ppar [ Ptpar ] Pdfsm Pfsm Pwrand Pxrand Prand Pshuf Pseq [ Ppatlace Place Pser ] ] Pindex Ppatmod Plazy Pstatbalnorm Pstatbal PstepNfunc [ PstepNadd ] Pstep3add Pstep2add Pwhite Pbrown P ...