Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ceiver. [nil, 2, nil, 3].collect { |x| x ?? { 100.rand } }; // replace nil by a random number ⧉ ✔ . booleanValue Returns false. [1, 2, nil, 3].collect(_.booleanValue); // compare: [true, false, false, true].collect(_.binaryValue); ⧉ ✔ . rat ...

  2. Pen Doc

    ... (0.1pi); Pen.translate(20, -20); Pen.fillOval(r); } }; w.front; ) ⧉ ✔ Redraw at random interval, different every time: ( var w, run = true; w = Window("my name is... panel", Rect(128, 64, 800, 800)); w.view.background = Color.white; w.onClo ...

  3. CutBuf3 Doc

    ... e parameter is a single number from 0.0 to 1.0 giving the chance of a jump to a random event in the source. You can pass an Array in that has two parameters, being [randomoffsetchance, quantise grid of offsetcutting in beats]. Ie, [0.3, 0.5 ...

  4. 04-Functions-and-Other-Functionality Doc

    ... }; // Assign the variable a Function as a value f.value; // 3.0.rand returns a random value from 0.0 to 3.0 (exclusive). f.value; // Another random value f.value; // Yet another random value ⧉ ✔ By using the "value" method Functions and ot ...

  5. QuickStart Doc

    ... t position of Arrive on the fly. Evaluate this a few time to move the entity to random points. ( ~steeringBehavior.targetPos = RealVector2D[rrand(15.0, 24.0), rrand(15.0, 25.0)]; ) ~unit1.remove; ⧉ ✔ We are going to have a look at the rest ...

  6. 055-boids-ga_synth Doc

    ... 4, 0.33422267436981, 0.43586611747742, 0.90562689304352]); //hardcoded parents. randomize parent genomes above for quite different results RedGA.crossOverRate= 0.5; c= {RedGA.breedMultiPoint(parent0, parent1).choose}.dup(n); }) //-- //testi ...

  7. Sieves_and_Psieve_patterns Doc

    ... extN(20) ... // maxLength defines the maximum number of items - // in case of a randomly generating item or a low summation limit // the overall stream might have to end earlier. b = PSVunion([7, 17, 29], 30).asStream b.all // if the summat ...

  8. ArrayedCollection Doc

    ... zeSum normalize perfectShuffle performInPlace rank shape reshape find replace asRandomTable tableRand msgSize bundleSize asciiPlot Ambisonic Toolkit detectHoaOrder clumpByHoaDegree Inherited instance methods Undocumented instance methods ad ...

  9. 12-Groups Doc

    ... us = 0, effectBus, direct = 0.5, freq = 440; var source; // 1.0.rand2 returns a random number from -1 to 1, used here for a random pan source = Pan2.ar(Decay2.ar(Impulse.ar(Rand(0.3, 1), 0, 0.125), 0.3, 1, SinOsc.ar(SinOsc.kr(0.2, 0, 110, f ...

  10. SSampler Doc

    ... key Play samples by giving key numbers. If no key number provided, it chooses a random MIDI key number. Defaults are also provided by SamplerArguments class. Arguments: keynums The MIDI key numbers to play, can be a single number, an array ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow