Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. plot Doc

    ... dup(100) }.dup(5).plot("Some 2-d data"); // 3-channel interlaced data b = [{1.0.rand}.dup(50), { 20.0.rand - 30 }.dup(50),{ 10.0.rand }.dup(50)].lace(150); b.plot(numChannels:3); // Common rescaling b.plot(numChannels:3, separately: false); ...

  2. LotkaVolterra Doc

    ... Ndef(\lv, { Mix( LeakDC.ar( LotkaVolterra.ar(SampleRate.ir*0.5, a: {LFNoise2.ar(Rand(0.000174, 0.00174)).range(0.49, 0.5)}!3, b: \b.kr(1.5, 0.1), c: {LFNoise2.ar(Rand(0.000174, 0.00174)).range(2, 4)}!4, // \c.kr(0.5, 0.1), a: {LFNoise2.ar(R ...

  3. 101-particle-system_synth Doc

    ... new particle and update the old ones var newPart= RedParticle(world, w.mouse+5.rand2, 0, RedVector2D[2.rand2, -10.rand], 1.5, 5.rand).age_(40.rrand(50)); sys.add(newPart); //add it to the system synths.put(newPart.hash, Synth(\sine)); //cr ...

  4. Pgauss Doc

    ... mean Examples Classes | Streams-Patterns-Events > Patterns'>Patterns > Patterns>Random'>Random Pgauss : Pattern : AbstractFunction : Object random values that follow a Gaussian Distribution Source: RandomDistPatterns.sc See also: Ppoisson D ...

  5. Stream2Trig Doc

    ... 2,2); },[ nil, nil, \envperc ]); Patch.new(\Stream2Trig, [ Stream2Trig( Pseq([ Prand([1,1,1,1,1,0,0,0,0],2)],inf), Pseq([0.25,0.25,0.25,0.125,0.125],inf) ), StreamKrDur(Pseq( Array.rand(16,30,50).midicps,inf ), 0.25,0.1 ) ]).gui ) ⧉ ✔ ( Pat ...

  6. MHexPad Doc

    ... lay; h[0][0].ledColors.put(0, Color.black); h[0][0].refresh; h[0][0].ledVal = 3.rand; h[0][0].label = ""; h.flat.do { |m| m.hexColor_(Color.rand).refresh }; Task { 100.do { |i| defer { h.flat.do { |m| m.angle_(m.angle + 0.1.bilinrand) } }; ...

  7. Tdef Doc

    ... 0.125.wait; "aazz".scramble.postln } }); Tdef(\x, { loop { 0.5.wait; (note: 14.rand).play } }); Tdef(\x, { loop { 0.5.wait; (note: 14.rand + [0, 3, 6, 7].keep(4.rand)).play } }); Tdef(\x).stop; Tdef(\x).play; Tdef(\x).clear; ⧉ ✔ Class Meth ...

  8. MultiSliderView Doc

    ... 0).states_([["reference = nil"], ["reference filled", Color.white], ["reference random", Color.yellow]]) .action_({ |b| b.value.booleanValue.if({ (b.value > 1).if( { m.reference = Array.fill(n, { 1.0.rand }) }, { m.reference = Array.fill(m. ...

  9. FuncStream Doc

    ... tion that is called for each next stream value. // make a stream that returns a random number a = FuncStream({ 1.0.rand }); a.next; ⧉ ✔ It uses Function: -inEnvir to statically bind the function call to the environment in which the FuncStre ...

  10. HiliteGradient Doc

    ... ( w = Window.new.front; v = CompositeView(w, Rect(50, 50, 300, 300)); c = Color.rand; d = c.vary(0.15); v.background = HiliteGradient(c, d, \v); [c, d].postln ) ( var w, k, c, d, e, c1, c2, f, g; w = Window.new.front; k = Slider2D(w, Rect(5 ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow