-
... ect(world, loc, vel, acc, 1.5, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o| o.addForce(o.world.gravity); o.update; world.contain(o); //Pen.addRect(Rect.aboutPoint(o.loc.asP ...
-
... pring(obj, t, 0.4, 0.5, 8); //object, target, stiffness, damping, length }; //--loop w.draw{ if(mp!=w.mouse, { //keeps target in middle if no mouse input trg.loc= w.mouse; }); sprs.do{|spr| spr.update; //--render springs Pen.strokeColor= Co ...
-
... e: a soundfile object of which the buffer will be shared. Note: the 'rate' and 'loop' settings of the soundfile are ignored, and can be set separately in the corresponding shared_buffer_in UMaps. id: the id (0-99) by which the buffer can be ...
-
... e: a soundfile object of which the buffer will be shared. Note: the 'rate' and 'loop' settings of the soundfile are ignored, and can be set separately in the corresponding shared_buffer_in UMaps. id: the id (0-99) by which the buffer can be ...
-
... sin(x) as a transfer function, so I included a phase offset (which makes a full loop around the circle as it goes from 0 to 1). It adds subtle timbral changes, but not much. By Josh Mitchell 2/20. */ SynthDef("waveFolder", { arg //Standard ...
-
... otV, <leftButtonV, <rightButtonV; var <attachButtons, <xpop, <ypop, <xySlider, <loopGui; var <xyMapDict; *new { |object, numItems = 5, parent, bounds, makeSkip = true, options = #[]| ^super.new(nil, numItems, parent, bounds, makeSkip, optio ...
-
... otV, <leftButtonV, <rightButtonV; var <attachButtons, <xpop, <ypop, <xySlider, <loopGui; var <xyMapDict; *new { |object, numItems = 5, parent, bounds, makeSkip = true, options = #[]| ^super.new(nil, numItems, parent, bounds, makeSkip, optio ...
-
... c,vel,acc,mass,size }.dup(n); kmeans= RedKMeans(~k, 10); //cluster analyser //--loop w.draw{ var colors= {|i| Color.hsv(i/~k, 1, 1)}.dup(~k); kmeans.k= ~k; kmeans.update(world.objects.collect{|o| o.loc}); world.objects.do{|o, i| var index= ...
-
... thread = Routine { // var testStream = Pseq([Pn(0, 200), Pn(1, inf)]).asStream; loop { // randomized sync times, to avoid contention at integer valued beats // stealing this idea from Scott Wilson's BeaconClock ((rrand(0.25, 0.75) + rrand(0 ...
-
... Example - x = SWDataNetwork .new; // build the device list and start the event loop: GeneralHID .buildDeviceList; GeneralHID .startEventLoop; // find an Impact game device and open it: a = GeneralHID .open( GeneralHID .findBy( 1973 ) ); // ...