Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1076) Code (138) Doc (359) Help (130) Quark (446) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. Control-Structures Help

    ... e examples: if ( [ false , true ].choose, // Boolean expression (chooses one at random) { "expression was true" .postln }, // true function { "expression was false" .postln } // false function ) ( var a = 1, z; z = if (a < 5, { 100 },{ 200 ...

  2. J_concepts_in_SC Help

    ... .slice(1,[0,1]); z.flop; // sorting order z = {100.rand}.dup(10); // generate a random array; // order returns an array of indices representing what would be the sorted order of the array. o = z.order; y = z[o]; // using the order as an ind ...

  3. Tour_of_UGens Help

    ... ation arguments: in, maximum delay time, current delay time, mul, add ( // Dust randomly triggers Decay to create an exponential // decay envelope for the WhiteNoise input source { z = Decay .ar( Dust .ar(1,0.5), 0.3, WhiteNoise .ar); Delay ...

  4. Date Help

    ... bject from it. *seed get current date and return a value suitable for seeding a random number generator. see also randomSeed ( var a = Date .seed; thisThread .randSeed = a; 20.do { [1,0].choose.post }; "" .postln; thisThread .randSeed = a; ...

  5. 13 Help

    ... expanded or contracted just by changing a few constants. ( { // 10 voices of a random sine percussion sound : s = Mix .ar( Array .fill(10, { Resonz .ar( Dust .ar(0.2, 50), 200 + 3000.0.rand, 0.003)}) ); // reverb predelay time : z = DelayN ...

  6. SCImageFilter Help

    ... .new( \CIZoomBlur ); a.plot; ) // again ( a.filters[0] = SCImageFilter .new( \CIRandomGenerator ); a.plot; ) ( a.removeAllFilters; a.plot(freeOnClose: true ); ) // ** Masking Example ** ( f = SCImageFilter .new( \CIColorMonochrome ); // cre ...

  7. Routine Help

    ... ze, seed) Creates a Routine instance with the given function. The stackSize and random seed may be overridden if desired. ( a = Routine .new({ 1.yield; 2.yield; }); a.next.postln; a.next.postln; a.next.postln; ) value(inval) resume(inval) n ...

  8. ServerOptions Help

    ... f recording). The default is 8. numRGens_(arg1) numRGens The number of seedable random number generators. The default is 64. numWireBufs_(arg1) numWireBufs The maximum number of buffers that are allocated to interconnect unit generators. (N ...

  9. PG_01_Introduction Help

    ... as we move to the next subject: getting basic types of data (deterministic and random) out of patterns. Next: PG_02_Basic_Vocabulary Documentation licensing The initial version of these documents was written December-February 2009 by H. Ja ...

  10. Array Help

    ... ty, maxlen) Return a new Array of length maxlen with the items partly repeated (random choice of given probability ). // compare: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].sputter(0.5, 16).postln; [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].sputter(0.8, 8).postl ...

prev 11 12 13 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow