Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... = s.nextNodeID, 0, 1); s.sendMsg( \n_trace , x); // poll the shared control bus Routine ({ 30.do({ s.getSharedControl(0).postln; 0.2.wait; }); }).play; ) s.quit;

  2. softSet Help

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

  3. Pswitch Help

    ... 4, 0]+64); c = Pswitch ([a, b, 75], Pseq ([2, 2, 0, 1], inf )); x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps]); 0.18.wait; }) }).play; )

  4. Pfin Help

    ... ({ rrand(3, 5)}, Pseq ([1, 2, 3, 4, 5, 6], inf )*4+65), inf ); b = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , b.next.midicps]); 0.12.wait; }) }).play; )

  5. Pslide Help

    ... add; ) ( c = Pslide (#[1, 2, 3, 4, 5], inf , 3, 1, 0) * 3 + 67; x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps]); 0.17.wait; }) }).play; )

  6. Streams-Patterns-Events2 Help

    ... stln; }); // print 5 values from the stream ) 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 ...

  7. Pswitch1 Help

    ... 4, inf ); c = Pswitch1 ([a, b, 75], Pseq ([2, 2, 0, 1], inf )); x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps]); 0.18.wait; }) }).play; )

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

  9. softVol_ Help

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

  10. Semaphore Help

    ... .signal; // allow others access again }; // e.g. set the values to integers u = Routine { inf .do { |i| useAndModify.value([100, 200, 300], "thread 1>" ); rrand(1, 3).wait; } }; // e.g. set the values to floats k = Routine { 0.5.wait; inf . ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow