-
... req+[0, beat], 0, amp)), lp); Out.ar(out, Pan2.ar(z, pan)); }).add; s.sync; //--objects { var loc= RedVector2D[width, height].rand; //initial xy location var mass= 1.rrand(10); RedAgent(world, loc, RedVector2D[0.001, 0.001].rand2, nil, mass ...
-
... ont; world= RedWorld3(RedVector[width], nil, 10, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector[width].rand; var vel= RedVector[1]; var mass= 0.5.rrand(4); var obj= RedBoid(world, loc, vel, 0, mass, mass*5) .maxForce_(1).wdista ...
-
... lider. If not, see <http://www.gnu.org/licenses/>. */ WFSPathSpec : Spec { *testObject { |obj| ^obj.isKindOf( WFSPathBuffer ); } constrain { |value| ^value; } default { ^WFSPathBuffer( nil ); } *newFromObject { |obj| ^this.new; } viewNumLin ...
-
... cer); // allow to save up to 3 voicers, using the NPVoicer class for all voicer objects // this requires 7 voicer objects in the patch: a.allVoicers; // -> [voicerA, voicerB, voicerC, voicerD, voicerE, voicerF, voicerG] a.current // -> curr ...
-
... dWorld1(RedVector2D[width, height], wgrav, 30, 0.8); //dim,grav,maxvel,damp //--objects trg= RedObject(world, RedVector2D[width*0.5, height*0.5]); objs= { var mass= 2.0.rand+1; RedObject(world, RedVector2D[width.rand, height.rand], RedVecto ...
-
... thod for posting all items in an array. also see: dopost ** does not return the object itself ** dopostln dopost can be used for every object that responds to do . It simply posts every object in the array, each on a new line. #[ a, b, c, d ...
-
... non-array source, also with an array source - [Robustness] `stringify`: cache `Object.prototype.hasOwnProperty` - [Refactor] `utils`: `isBuffer`: small tweak; add tests - [Refactor] use cached `Array.isArray` - [Refactor] `parse`/`stringif ...
-
... dWorld3(RedVector2D[width, height], wgrav, 15, 0.5); //dim,grav,maxvel,damp //--objects objs= { var loc= RedVector2D[250, 10].rand; //initial xy location var vel= RedVector2D[3.5, 0].rand; //initial velocity var acc= RedVector2D[0, 0]; //in ...
-
// use Ndef.defaultServer in new and printOn methods. + Ndef { *new { | key, object | // key may be simply a symbol, or an association of a symbol and a server name var res, server, dict; if(key.isKindOf(Association)) { server = Server.name ...
-
... RedWorld(RedVector2D[width, height], wgrav, 5, 0.8); //dim,grav,maxvel,damp //--objects {|i| var loc= RedVector2D[width/n*i, height*0.5]; RedObject(world, loc, nil, nil, 10, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ thet ...