-
... 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; ) //////////////////////////// ...
-
... 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 = ...
-
... 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 ...
-
... 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. ...
-
... 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 ...
-
... 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. ...
-
... 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, ...
-
... 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 ...
-
... 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 ...
-
... [\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 ...