Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... awImage(Rect(0, 0, width, height), img); }; img.interpolation= \smooth; w.play; CmdPeriod.doOnce({img.free; w.close}); )

  2. 013-attraction4 Quark

    ... mass/12); Pen.fillRect(Rect.aboutPoint(o.loc.asPoint, 0.5, 0.5)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  3. 044-pendulum-1d Quark

    ... n.addOval(Rect.aboutPoint(ploc, o.size/5, o.size/5)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); ) /* //manual control a.addForceAngular1D(30) a.addForceAngular1D(5) a.addForceAngular1D(-5) a.pendulumOffset1D a.pendulumLoc1D */

  4. gui_example_userview_fft Quark

    ... -Data"); //replace IBVA with IBVAfake for test data f= IBVAfft(~ibva); f.start; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).m ...

  5. 041-pendulum2 Quark

    ... n.addOval(Rect.aboutPoint(ploc, o.size/5, o.size/5)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); ) /* //manual control - add force to random object a.choose.addForceAngular2D(30) a.choose.addForceAngular2D(5) a.choose.addForceAn ...

  6. extPlotTreeScale Quark

    ... p { this.sendMsg("/g_queryTree", 0, 0); interval.wait; } } }; updateFunc.value; CmdPeriod.add(updateFunc); SystemClock.sched(3, { if(done.not, { actionIfFail.value(); "Server failed to respond to Group:queryTree!".warn; }); }); //action to ...

  7. 130-obstacle_rock Quark

    ... ers //--render Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); )

  8. ReceiveTrig Quark

    ... alse; var <endOSCFunc; var <cmdName; *defaultCmdName { ^'/reply' } *initClass { CmdPeriod.add( this ); } *new { |source, action, cmdName, id| ^super.new.init( source, cmdName ) .id_( id ) .action_( action ? { |value, time, responder, msg| v ...

  9. red00 Quark

    ... Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).m ...

  10. red01 Quark

    ... Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).m ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow