Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ng(sceneWidth, sceneHeight, cellSize)); repManager = RepresentationManager.new; CmdPeriod.add({this.clear}); edgeWalls = []; } /* public */ switchSpace{ arg width = sceneWidth, height = sceneHeight, cell = cellSize; this.removeCamera; this. ...

  2. SynthDefAutogui Quark

    ... ation / Class Methods *new (name, aSynth, rate, target, args, addAction, closeOnCmdPeriod, freeOnClose, window, step, hOff, vOff, scopeOn, specs) The main method where all parameters are set name - Name of the SynthDef to inspect. Default v ...

  3. 018-repulsive_discrete Quark

    ... .aboutPoint(o.loc.round.asPoint*[wn, hn], pixelSize, pixelSize)); }; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ) ~world.objects.do{|o, i| o.loc= RedVector2D[i, ~world.objects.size.rand]}; ~world.objects.do{|o, i| o.loc= RedVect ...

  4. sound_example_filters_and_scopeview Quark

    ... .numChannels); scopeBuffer= ScopeBuffer.alloc(s, ~openbci.numChannels); s.sync; CmdPeriod.doOnce({ win.close; scp.stop; signalBus.free; signalBus= nil; scopeBuffer.free; scopeBuffer= nil; }); win.onClose= { CmdPeriod.run; }; scp.server= s; ...

  5. 004-multiple_synth Quark

    ... or.grey(o.mass/4, 0.7); Pen.strokeOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); })

  6. 161-growth2 Quark

    ... ct(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; }; w.play(1); //slow updaterate CmdPeriod.doOnce({w.close}); )

  7. 160-growth Quark

    ... in this world Pen.addRect(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); ) ~initSize= {5}; //varying object sizes ~distance= 5; //distance to stick

  8. 005-multiple_synth Quark

    ... ect.aboutRedObject2D(o)); Pen.fillRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); })

  9. 261-oscillators_clocks Quark

    ... ze*0.9; Pen.moveTo(p); Pen.lineTo(p+Point(x, y)); }; Pen.fillStroke; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ) ~world.objects.do{|o| o.freq= 0.2.rand}; //random frequencies ~world.objects.do{|o| o.coupling= 0.05}; //stronger ...

  10. 178-springs_coupled Quark

    ... Rect(x[0], y, 1, 1)); Pen.addRect(Rect(x[1], y, 1, 1)); }; Pen.fill; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ) //move left object ~leftObj.loc= RedVector2D[10, 200]; //move right object ~rightObj.loc= RedVector2D[1000, 2000]; ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow