-
... itself f.value; // f hasn't changed, so the post window says 3 again f = { 3.0.rand }; // 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 ...
-
... receiver together with all arguments a = Array.fill(8, { |i| var k = (1/(i+1)).rand; Maybe({ |x| x * k }) }); b = o(Maybe({ |x| x }), *a); b.value(1); method::do Calls the source, like in link::Classes/Function::. Examples:: code:: // the ...
-
... n2", y = s.nextNodeID, 0, 1); Routine({ 30.do({ s.setSharedControl(0, 300 * (10.rand + 1)); 0.2.wait; }); s.sendMsg(\n_free, x); s.sendMsg(\n_free, y); }).play; ) s.quit; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classe ...
-
... ent value. Inherited instance methods Examples a= RedSmooth(0.05); a.filter(1.0.rand); //run repeatedly - low pass filtered random data //plot example a= RedSmooth(0.1); ~squarewave= (0..1000).collect{|x| (x%200>100).binaryValue}; ~smoothed ...
-
... ed class methods Instance Methods Inherited instance methods Examples ( // Dust randomly triggers Decay to create an exponential // decay envelope for the WhiteNoise input source { z = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar); DelayL.a ...
-
... .ar(z, pan)); }).add; s.sync; //--objects { var loc= RedVector2D[width, height].rand; //initial xy location var mass= 1.rrand(10); RedAgent(world, loc, RedVector2D[0.001, 0.001].rand2, nil, mass, mass) //world,loc,vel,acc,mass,size .maxForc ...
-
... RedVector2D[px+15, py+15]; var obj= RedAgent(world, loc, RedVector2D[0.5, 0.5].rand2, nil, 1, 10); //world,loc,vel,acc,mass,size obj.state= (\cell: 2.rand, \neighbours: 0); px= px+(obj.size*2-1); if(px>(width*0.9), { px= 0; py= py+(obj.siz ...
-
... Part= RedParticle(world, RedVector2D[width*0.5, height*0.9], 0, RedVector2D[0.5.rand2, -5.0.rrand(-10)], 1, 3.0.rand).age_(1000); sys.add(newPart); //add it to the system Synth(\noise, [ //create a corresponding synth \freq, newPart.size.li ...
-
... ed class methods Instance Methods Inherited instance methods Examples ( // Dust randomly triggers Decay to create an exponential // decay envelope for the WhiteNoise input source { z = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar); DelayC.a ...
-
... lean logical And boolean || boolean logical Or When a function is the second operand, these operators perform short-circuiting (i.e., the function is executed only when its result would influence the result of the operation). This is recomm ...