Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... erEnd.position.y)); }; Pen.stroke; }; 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. Debouncer Doc

    ... db = Debouncer({ "Debouncer immediate fired".postln; }, 0.5, immediate: true); Routine({ db.trigger; 0.1.wait; db.trigger; 0.1.wait; db.trigger; // should fire only once }).play; ) ( var db = Debouncer({ "Debouncer reset - should not fire" ...

  3. Klank Doc

    ... nil, rings], // specs i // input ); Out.ar(out, Pan2.ar(z*e, pan)); }).add; r = Routine{ var sustain = 8, transition = 3, overlap = 4; var period = transition * 2 + sustain / overlap; 0.5.wait; // wait for the synthdef to be sent to the ser ...

  4. Simple_Pendulum Doc

    ... sition.x, p.position.y), 10, 10)); }; 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. ListComprehensions Doc

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

  6. StaticText Doc

    ... ); Out.kr(b.index, freq); // output the frequency to a control bus }).play; r = Routine { { // Set the value of the StaticText to the value in the control bus. // Setting GUI values is asynchronous, so you must use .defer in the system cloc ...

  7. RedMatrixMixerGUI Doc

    ... egree, Pseq([0, 1, 5, 4], inf), \dur, 0.25, \out, Pseq((0..7), inf) ).play; ) ( Routine({ 10.do{|x| a.o0= a.o0.rotate; a.o1= a.o1.rotate; a.o2= a.o2.rotate; a.o3= a.o3.rotate; 0.2.wait; }; }).play(AppClock); ) g.close b.stop ⧉ ✔ helpfile so ...

  8. Prand Doc

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

  9. Streams-Patterns-Events2 Doc

    ... }); // print 5 values from the stream ) ⧉ ✔ A Prout is a Pattern that returns a Routine . The same function argument is supplied as is supplied to Routine. ( var a, b, c; a = Prout.new({ 3.do({ arg i; 3.rand.yield; }) }); // make two stream ...

  10. softVol_ Doc

    ... st).softVol_(sl.value, 0.05) }); // safer EZSlider(w, 340@30, \knowLastV, \amp, Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Ndef(\test).softVol_(sl.value, 0.05, lastVal: lastVal); lastVal = newVal; \dummy.yield; } }); ) ⧉ ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow