Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (642) Code (56) Doc (227) Help (20) Quark (339) SCDoc ↗ Forum ↗ Google ↗
  1. 191-kmeans2 Quark

    ... 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 ...

  2. 092-livecoding-worlds Doc

    ... 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, ...

  3. 092-livecoding-worlds Quark

    ... 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, ...

  4. KeyDownActions Quark

    ... ar globalShortcutsPath, globalShortcuts; var platform, scFunc; var syncStarter, cmdPeriodSynthRestart; var test; Class.initClassTree(Platform); Class.initClassTree(GUI); Class.initClassTree(SynthDescLib); Class.initClassTree(SynthDef); glob ...

  5. 101-particle-system_synth Doc

    ... Color.grey(o.age/50, 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )

  6. 031-wave_synth Doc

    ... 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 ...

  7. 101-particle-system_synth Quark

    ... Color.grey(o.age/50, 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )

  8. 031-wave_synth Quark

    ... 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 ...

  9. SCPopUpMenu Help

    ... 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 }) )

  10. gui_example_userview_accelerometer Quark

    ... 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 ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow