Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... utComb1({ exprand(100, 200).reciprocal }, 0.5)]), BBCutProc11()).play(2.5); r = Routine({ loop { [48, 55, 62, 65].scramble.midicps.reciprocal.do(_.yield) } }); BBCut2(CutGroup([CutBuf3(~buf, 0.3), CutComb1(r, 0.5)]), BBCutProc11()).play(2.5 ...

  2. Pser Doc

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

  3. softSet Doc

    ... ue, 0.05) }); // knows it was in control EZSlider(w, 340@30, \knowsLast, \freq, Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Ndef(\test).softSet(\freq, newVal, 0.05, lastVal: lastVal); lastVal = newVal; \dummy.yield; } }); ...

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

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

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

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

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

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

  10. Patch-spawning-and-patterns Doc

    ... b.prepareForPlay(s); // play one grain b.spawn(atTime: 0.1); // play 100 grains Routine({ 1.0.wait; 100.do({ b.spawn(atTime: 0.1); 0.25.wait }) }).play(SystemClock) ) ⧉ ✔ Note that there is a Patch method .respawn which is different. Events ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow