-
Prand embed values randomly chosen from a list superclass: ListPattern 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. ...
-
... ctions that may be used for any purpose. #{ |notes| notes.scramble } => Func ( \random ); Func ( \random ).value([60, 62, 64, 65, 67]); If there is no function for the given name symbol, nil will be returned. If needed, you can protect agai ...
-
... ctions that may be used for any purpose. #{ |notes| notes.scramble } => Func ( \random ); Func ( \random ).value([60, 62, 64, 65, 67]); If there is no function for the given name symbol, nil will be returned. If needed, you can protect agai ...
-
... d to eliminate duplicates. b = SeenBefore.new; f = { 100.rand }; // or choose a random soundfile path 100.do { arg i; var v; v = f.value; if(b.value(v),{ [k,v].postln }) }; ⧉ ✔ Class Methods . new No arguments Inherited class methods Instan ...
-
... ], RedVector2D[0, 0], 105, 10); { var loc= RedVector2D[30, 30].rand; //start at random position upper left RedObject(world, loc, RedVector2D[1.5, 1], RedVector2D[0, 0], 1.5, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen. ...
-
... ], RedVector2D[0, 0], 105, 10); { var loc= RedVector2D[30, 30].rand; //start at random position upper left RedObject(world, loc, RedVector2D[1.5, 1], RedVector2D[0, 0], 1.5, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen. ...
-
... return the list's values in order Pshuf (list, repeats) scramble the list into random order Prand (list, repeats) choose from the list's values randomly Pxrand (list, repeats) choose randomly, but never return the same list item twice in a ...
-
... uffer.alloc(s, 100); ( // This time we'll trigger something to create and store random values, and recall them later. x = { |t_trig=0, t_reset=0| var source; source = LFNoise0.kr(10); source.poll(t_trig, "Storing this random value"); Logger ...
-
... emand Dxrand : ListDUGen : DUGen : UGen : AbstractFunction : Object Demand rate random sequence generator. Source: Demand.sc See also: Demand , Drand , Dseq , Dser , Duty , TDuty Description Dxrand never plays the same value twice, whereas ...
-
... Demand Drand : ListDUGen : DUGen : UGen : AbstractFunction : Object Demand rate random sequence generator. Source: Demand.sc See also: Demand , Dseq , Dser , Duty , Dxrand , TDuty Description Dxrand never plays the same value twice, whereas ...