Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (91) Code (15) Doc (17) Help (12) Quark (46) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. randomSeed Help

    ... st by one Integer number that you can write down in your notebook.. see also: [ RandSeed ] [ Pseed ] [ Thread ] // every thread, also a Routine, has a random generator seed: ( r = Routine ({ loop({#[1,2,3,4,5].choose.yield }) }); r.randSeed ...

  2. RandSeed Help

    RandSeed set the synth's random generator seed RandSeed.kr(trig, seed) RandSeed.ar(trig, seed) When the trigger signal changes from nonpositive to positve, the synth's random generator seed is reset to the given value. All synths that use t ...

  3. RandID Help

    ... eproduce the same sequence of numbers when the same seed is set again See also: RandSeed randomSeed // start a noise patch and set the id of the generator ( SynthDef ( \help_RandID , { arg out=0, id=1; RandID .ir(id); Out .ar(out, WhiteNois ...

  4. Thread Help

    ... = running 8 = stopped Seeding the random number generator see also: randomSeed randSeed_ (seed) seed - Set the random number generator seed using a single integer // inline example g = thisThread .randSeed_(4); 10.do{1.0.rand2.postln}; ran ...

  5. UGens Help

    ... PauseSelf Random Values Rand ExpRand LinRand NRand IRand TIRand TRand TExpRand RandSeed RandID Array Usage Select TWindex to be continued ....

  6. Randomness Help

    ... or in order to repeat the same sequence of random numbers: ( 5.do({ thisThread .randSeed = 4; Array .fill(10, { 1000.linrand}).postln; }); ) // Just to check, no seeding: ( 5.do({ Array .fill(10, { 1000.linrand }).postln; }); ) // see also ...

  7. SCStaticText Help

    ... "Gadget" , "MarkerFelt-Thin" ].choose, 11)) }); r = { inf .do{ |i| thisThread .randSeed_(1284); a.do{ |item| // setting GUI values is asynchronous, so you must use .defer {item.bounds = Rect (5+w.bounds.extent.x.rand * (cos(i*0.01)).abs, w ...

  8. PG_06e_Language_Control Help

    ... thmic value \dur , Pif ( Pkey ( \degree ).odd, 0.25, 0.5) ).play; p.stop; Pseed(randSeed, pattern): Random number generators depend on seed values; setting a specific seed produces a repeatable stream of pseudorandom numbers. Pseed sets the ...

  9. Date Help

    ... random number generator. see also randomSeed ( var a = Date .seed; thisThread .randSeed = a; 20.do { [1,0].choose.post }; "" .postln; thisThread .randSeed = a; 25.do { [1,0].choose.post }; "" .postln; ) Instance Methods localtime set the r ...

  10. SCPen Help

    ... Pen .width = 2; Pen .use { // reset this thread's seed for a moment thisThread .randSeed = Date .seed; // now a slight chance of a new seed or background color if (0.006.coin) { seed = Date .seed; }; if (0.02.coin) { w.view.background = Col ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow