Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (535) Code (6) Doc (245) Help (16) Quark (266) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. 110-bounce_objects Quark

    ... oo), { o.addForce(o.gravityForce(oo).neg*100); }); }); }; world.contain(o); //--render Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. FoaDecode Doc

    ... ation: NOT INSTALLED! See also: FoaDecoderMatrix , FoaDecoderKernel Description Renders (decodes) a First Order Ambisonic signal (B-format) to speaker feeds in a variety of configurations. DecodeB2 is the SuperCollider inbuilt equivalent. C ...

  3. grapher Quark

    ... d, theChanger; this.translate ; //this.exec ; // call graphviz } snapshot { arg render = false ; this.translate ; if ( render, { this.exec }) ; } } // Setup a GUI with a routine reloading the img file specified in the path // with a trick b ...

  4. 020-friction Doc

    ... { obj.vel= obj.vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.red; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.cl ...

  5. 020-friction Quark

    ... { obj.vel= obj.vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.red; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.cl ...

  6. 012-attraction3 Doc

    ... lculate accel, vel and loc world.contain(o); //keep object within the world //--render Pen.fillColor= Color.grey(1-(o.mass/12), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  7. 051-boids2 Doc

    ... .loc= w.mouse; }); //o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  8. 026-multiple_barycenter Doc

    ... (i!=j, { o.addForce(o.gravityForce(oo)); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.blue; Pen.strokeOval(Rect.aboutRedObject2D(o)); }; world.objects.do{|o, i| bary= bary+(o.loc*o.mass); }; bary= bary/totalMass; Pen ...

  9. 012-attraction3 Quark

    ... lculate accel, vel and loc world.contain(o); //keep object within the world //--render Pen.fillColor= Color.grey(1-(o.mass/12), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  10. 051-boids2 Quark

    ... .loc= w.mouse; }); //o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow