Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (642) Code (56) Doc (227) Help (20) Quark (339) SCDoc ↗ Forum ↗ Google ↗
  1. 060-angents-gol Doc

    ... e[\cell]*0.85+0.15, 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. 102-particle-system_fountain_synth Doc

    ... all particles Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); } )

  3. 191-kmeans2 Doc

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

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

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

    ... pareChildrenToBundle spawnToBundle didSpawn startTask isPlaying didStop didFree cmdPeriod guiClass Inherited instance methods Examples Classes (extension) | Libraries > crucial'>crucial > crucial>Instr'>Instr | Libraries > crucial'>crucial ...

  8. GMTextView Doc

    ... .layout_( HLayout( label, ).margins_(0)); win.front; // Useful when developping CmdPeriod.doOnce({ win.close; }); ) ⧉ ✔ You can use .displayFrame_(true) to render the GMStyle frame : ( var label = GMTextView() .fontRatio_(0.15) .displayFram ...

  9. GMSymbol2DSlider Doc

    ... _(0) .add(multiSlider) ); win.onClose_({ if(synthFree.not) { synth.free; }; }); CmdPeriod.doOnce({ synthFree = true; win.close; }); win.front; }); ) ⧉ ✔ In the context of Frequency Modulation, using a 2D slider allows to control the two par ...

  10. 122-collision_objects_synth Doc

    ... p(0, 5, 200, 2000), \freq2, (5-o.mass).linexp(0, 5, 200, 2000) ); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow