-
... hite; //Pen.fillOval(Rect.aboutPoint(c, 15, 15)); //draw centroid }; }; w.play; CmdPeriod.doOnce({w.close}); ) //--play with the number of centroids/clusters ~k= 15 ~k= 35 ~k= 2 ~k= 3 ~k= 10 //--add some gravity to make things harder ~www.g ...
-
... r.grey(1-(i/~n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; ~win.play; CmdPeriod.doOnce({~win.close}); ) //--livecoding interpolates worlds //--first create 2 different worlds ~black= RedWorld3(RedVector2D[400, 400], RedVector2D[0, ...
-
... r.grey(1-(i/~n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; ~win.play; CmdPeriod.doOnce({~win.close}); ) //--livecoding interpolates worlds //--first create 2 different worlds ~black= RedWorld3(RedVector2D[400, 400], RedVector2D[0, ...
-
... ar globalShortcutsPath, globalShortcuts; var platform, scFunc; var syncStarter, cmdPeriodSynthRestart; var test; Class.initClassTree(Platform); Class.initClassTree(GUI); Class.initClassTree(SynthDescLib); Class.initClassTree(SynthDef); glob ...
-
... Color.grey(o.age/50, 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )
-
... ey(1, 0.4); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; }) //--livecoding w= RedUniverse.worlds[0] w.gravity= RedVector2D[-0.3, 0.04]; w.damping= 0.999 ...
-
... Color.grey(o.age/50, 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )
-
... ey(1, 0.4); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; }) //--livecoding w= RedUniverse.worlds[0] w.gravity= RedVector2D[-0.3, 0.04]; w.damping= 0.999 ...
-
... ncs.at(menu.value).play; }) .action_({ arg butt, mod; snd.free; }); w.front; p= CmdPeriod .add({b.value_(0)}); // set button to 0 on hitting Cmd-period w.onClose_{ snd.free; CmdPeriod .removeAll }; // clean up when window is closed }) )
-
... gAtPoint("z:"+xyz[2], Point(5, 45)); }; }; win.onClose= {img.free; board.stop}; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); data= buffer.readAccel; if(data.isEmpty.no ...