-
... KeyPlayer(\rd); "qwertzuiopasdfghjklyxcvbnm".do { |char| var note = (midinote: rrand(36, 96), dur: rrand(0.1, 1.0)); k.put(char, { |char| char.postln; note.postln.play }); }; ) // make a big gui for it - see KeyPlayerGui.help g = KeyPlayerG ...
-
... 0.02); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var mass= 0.5.rrand(10); RedObject(world, loc, RedVector2D[0, 0], RedVector2D[0.5, 0.5], mass, mass*5); }.dup(n); //--loop w.draw{ world.objects.do{|o, i| ...
-
... 0.05); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 0.5.rrand(4); RedBoid(world, loc, vel, RedVector2D[0, 0], mass, mass*5) //world,loc,vel,acc,mass,size .max ...
-
... ) }).add; ) ( // DEFINE A ROUTINE r = Routine({ 12.do({ Synth( "fm2", [ \bus, 2.rand, \freq, 400.0.rrand(1200), \carPartial, 0.5.rrand(2), \ts, 0.5.rrand(11) ] ); s.queryAllNodes; "".postln.postln.postln.postln.postln; 2.wait; }) }); ) // P ...
-
... 2]; // adds to the array ⧉ ✔ NOTE: Note that, unlike with addAll, the second operand must be a collection in order to function in this way. addFunc Returns a function or a FunctionList. This method is used to add multiple functions to alrea ...
-
... 5, 1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var mass= 0.5.rrand(10); RedObject(world, loc, 0, RedVector2D[1, 1], mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ world.objects ...
-
IRand: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Random'>Random IRand : UGen : AbstractFunction : Object Single integer random number generator. Sour ...
-
ExpRand: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Random'>Random ExpRand : UGen : AbstractFunction : Object Exponential single random number generat ...
-
... : Object Demand rate sequence generator. Source: Demand.sc See also: Demand , Drand , Dser , Duty , Dxrand , TDuty Description Demand rate sequence generator. See Pseq for structurally related equivalent. Class Methods Dseq. new ( list , r ...
-
... erited instance methods Examples a = BlobField(0.0,1.0, 60.collect{ [RealVector.rand(2),rrand(0.4,1.0),0.05] }) a.plotUni(Rect(0,0,1,1),400,0.2); a.getRange; a.value(RealVector[0.2,0.7]); BlobField(0.0,1.0,[[RealVector[0.5,0.5],1,0.05]]).pl ...