Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

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

  2. SCButton Help

    ... CmdPeriod .removeAll }; //clean up when window is closed w.front; }) ) // Using Routine to set button states on the fly. ( var update, w, b; w = Window .new( "State Window" , Rect (150, Window .screenBounds.height-140,380,60)); // a conveni ...

  3. Streams Help

    ... tion ] - A Practical Guide to Patterns [ Streams-Patterns-Events1 ] - Streams & Routines [ Streams-Patterns-Events2 ] - Patterns Introduction [ Streams-Patterns-Events3 ] - ListPatterns [ Streams-Patterns-Events4 ] - Environment & Event [ S ...

  4. Pser Help

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

  5. Pstutter Help

    ... v)) }).add; ) ( c = Pstutter (3, Prand ([1, 2, 3], inf )*4+65); x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps]); 0.12.wait; }) }).play; )

  6. Pshuf Help

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

  7. Pxrand Help

    ... r(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; )

  8. Ref Help

    ... (see Klank for an example). Refs can also be used to simplify the coding of co-routines used in EventStreams (see Proutine for an example). example: x = Ref ( nil ); z = obj.method(x); // method puts something in reference x.value.doSometh ...

  9. PMOsc Help

    ... 550, Line .ar(0,20,8), 0, 0.1) }); // modulate index ( e = Env .linen(2, 5, 2); Routine .run({ loop({ play({ LinPan2 .ar( EnvGen .ar(e) * PMOsc .ar(2000.0.rand,800.0.rand, Line .kr(0.0, 12.0.rand,9),0,0.1), 1.0.rand2)}); 2.wait; }) }))

  10. Pwrand Help

    ... = Pwrand ([60, 61, 63, 65, 72], [10, 2, 3, 1, 3].normalizeSum, inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , a.next.midicps]); 0.1.wait; }) }).play; )

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow