Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... Sine, { |out, freq=440, sustain=1.0| var osc; osc = SinOsc.ar( [freq, freq+0.05.rand], 0.5pi ) * EnvGen.ar( Env.perc, doneAction: Done.freeSelf, levelScale: 0.3, timeScale: sustain ); Out.ar(out, osc); }).add; ) //////////////////////////// ...

  2. ScatterView3d Doc

    ... t background-color Inherited instance methods Examples ( var data; data = {{2.0.rand2}!3}!150; w = Window.new("3D Scatterplot", Rect(40,40, 500, 500)).front; a = ScatterView3d(w, Rect(10,10, 450, 450), data, [-2, 2].asSpec); a.drawMethod = ...

  3. NodeProxy Doc

    ... q, 123); b = NodeProxy(s); b.source = { |freq = 1000| SinOsc.ar(freq * 3 * { { rrand(0.9, 1.1) }.dup(8) }.dup(2)).mean * 0.5 }; b.monitor = a.monitor.copy; b.nodeMap = a.nodeMap.copy; b.play; a.stop; ⧉ ✔ . copyState ( proxy ) Copy the inter ...

  4. things_you_wanna_know Doc

    ... var slider= Slider(); var value = 0; var routine = Routine({ loop { value = 101.rand / 100; // Interacting with a widget from within a routine: // instructions must be nested in a function, and deferred { slider.value_(value); }.defer; 0.5. ...

  5. MKtl Doc

    ... ltiple key/value pairs from a list of key, value arguments. m.set(\joy_l_x, 1.0.rand, \joy_l_y, 1.0.rand, \joy_r_x,1.0.rand, \joy_r_y, 1.0.rand); m.gui; . setAction same as set, but with doAction of the elements being set . send Send the va ...

  6. SimpleDMXUniverse Doc

    ... DMXFixture(0, 10).setRaw(2, [25, 26, 27, 28]); d.add(f); d.state; f.set(0, {1.0.rand}!10); // set random values d.add(f); d.state; d.flush; // an Astera LED Par at dmx address 20 g = SimpleDMXFixture.newFor(\ax3, \13, 20); g.setColor(Color. ...

  7. How_to_create_a_description_file Doc

    ... f 5 buttons m.elAt(\bt, 0).value_(1) // one of them m.elAt(\sl).do(_.value_(1.0.rand)) // all sliders // one can also access them by direct names: m.dictAt(\sl_1).action = { |sl| "yo slider: % > %\n".postf(sl.name, sl.value) }; m.elAt(\sl, ...

  8. 150-track_synth Doc

    ... control data from tracker //--objects {|i| var loc= RedVector2D[width, height].rand; //initial xy location var mass= 2.rrand(20); var a= RedAgent(world, loc, RedVector2D[0.001, 0.001].rand2, nil, mass, mass); //world,loc,vel,acc,mass,size ...

  9. PG_06e_Language_Control Doc

    ... hythmic 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 ...

  10. OscN Doc

    ... [\out, 0, \bufnum, b.bufnum]); ) ( Routine({ var n = 32; 50.do({ b.sine1(Array.rand(n, 0, 1).cubed, true, true, true); 0.25.wait; }); }).play; ) b.free; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/OscN.schelp lin ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow