-
... RedWorld(RedVector2D[width, height], wgrav, 8, 0.1); //dim,grav,maxvel,damp //--objects objsFunc= { //for creating new agents var loc= RedVector2D[width, height].rand; var obj= RedAgent(world, loc, RedVector2D[0.5, 0.5].rand2, nil, 1, 10) . ...
-
... y of them, rather than passing 'out' by reference // (either way there's a temp object to garbage collect) hook = { |key, value, plug, i, out, remove| out = out.add(key); if(plug.notNil) { out = out.add(plug); value = plug; remove.add((key ...
-
LPClef explanation of what LPClef is and/or does Inherits from: Object : LPObj More detailed prose description of LPClef. See also: Object [some other help files] Some Important Issues Regarding LPClef (optional) Explanation of the issues. ...
-
... { var <>showCorners = true; var <>showUnits = true; var <>unitSize = 8; defaultObject { ^nil } // nil means default conf { ^object ? WFSSpeakerConf.default; } conf_ { |newConf| object.removeDependant( this ); this.object = newConf ? WFSSpe ...
-
... dWorld(RedVector2D[width, height], wgrav, 20, 0.01); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; RedPendulum(world, loc, nil, 0, 4.0.rand, 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angul ...
-
//wave with objects //with sound - like a big mixer that mix partials. object's y position is amplitude ( s.waitForBoot{ var width= 300, height= 300, w, wgrav, world, n= 30, sys, synths; //--synthesis SynthDef(\sine, {|out= 0, freq= 400, be ...
-
... World3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--objects att= RedObject(world, RedVector2D[100, 100], RedVector2D[0, 0], RedVector2D[0, 0], 105, 10); { var loc= RedVector2D[30, 30].rand; //start at random posi ...
-
... World(RedVector2D[width, height], wgrav, 20, 0.001); //dim,grav,maxvel,damp //--objects ypos= 10; while({ypos<(height-10)}, { var size= 50.0.rand; //pendulum size var loc= RedVector2D[width.rand, ypos+size]; var vel= RedVector2D[0.5, 0].ran ...
-
... RedWorld3(RedVector2D[width, height], wgrav, 20, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; RedPendulum(world, loc, vel, 0, 60.rand, 20.rand) //world,loc,vel,acc, ...
-
MTGui : HJHObjectGui { classvar <>dragWidth = 80, <>dragHeight = 15, <>rows = 12, <>gap = 2, <>fontSpecs = #["Helvetica", 10]; classvar >font, <backColors, blackKeys; var <mainView, <chanText, // which channel? <dragViews, // one per key mi ...