Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (889) Code (79) Doc (285) Help (132) Quark (392) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. red02 Doc

    ... 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).max(0.001).wait; }); }).play(App ...

  2. NRand Doc

    ... , n), 0, Line.kr(0.2, 0, 0.01, doneAction: Done.freeSelf)) ) }).add; ) ( n = 0; Routine({ inf.do({ |i| Synth.new("help-NRand", [\n, n]); 0.05.wait; }) }).play; ) n = 1; n = 2; n = 4; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpS ...

  3. Pshuf Doc

    ... nv)) }).add; ) ( a = Pn(Pshuf(#[60, 60, 60, 61, 63, 65, 72], 4), inf).asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, a.next.midicps]); 0.15.wait; }) }).play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classe ...

  4. red02 Quark

    ... 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).max(0.001).wait; }); }).play(App ...

  5. RedMstGUI Quark

    ... ngColor_(colFore)}); }; } prInitMetro {} prInitUser {} prInitTask {|size| task= Routine{ var lastJump; inf.do{ { guiPlay.value_(RedMst.isPlaying.binaryValue); guiSection.string_(RedMst.section); guiMaxSection.string_("/"++RedMst.maxSection) ...

  6. Control-Structures Doc

    ... { arg item; item.postln }; // iterates from eight to twenty, with stepsize two Routine { var i = 10; while { i > 0 } { i.yield; i = i - 5.0.rand } }.do { arg item; item.postln }; // 'do' applies to the Routine ⧉ ✔ NOTE: The syntax (8..20). ...

  7. Pxrand Doc

    ... .ar(freq, 0, env)) }).add; ) ( a = Pxrand(#[60, 61, 63, 65, 72], inf).asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, a.next.midicps]); 0.1.wait; }) }).play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes ...

  8. FPSoundRepresentation Quark

    ... io', 2); nodeProxy.play; /* make some sound */ this.add; } /* public */ remove{ Routine{ //clear everything with given realease time nodeProxy.clear(release); //wait for the release to finish release.wait; repManager.remove(this); attached ...

  9. ListComprehensions Help

    ... 5, 2 ] ] the list comprehension above is equivalent to the following code: all( Routine .new({ (1..5).do { |x| (1..x).do { |y| if ((x+y).isPrime) {[x,y].yield} }}})); ..but much more concise and much easier to keep in your head than writing ...

  10. DiffString Doc

    ... ("hello word"); d.value("hello world"); d.value("hello"); // or make a separate routine: ( r = Routine { |inval| var prev, outval; loop { inval = inval.as(Array); outval = d.parse(inval, prev); prev = inval; inval = outval.yield } }; ); r.n ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow