-
... db dbamp octcps cpsoct log log2 log10 sin cos tan asin acos atan sinh cosh tanh rand rand2 linrand bilinrand sum3rand distort softclip coin even odd isPositive isNegative isStrictlyPositive rho theta Binary Messages + - * / div % ** min max ...
-
... jects objsFunc= { //for creating new agents var loc= RedVector2D[width, height].rand; var obj= RedAgent(world, loc, RedVector2D[0.5, 0.5].rand2, nil, 1, 10) .maxForce_(1.2).wchange_(0.9).wdistance_(5).wradius_(10); obj.state= ( //init state ...
-
... = UserView(w, w.view.bounds.insetBy(50, 50)); v.resize = 5; v.background_(Color.rand); v.drawFunc = { |uview| Pen.moveTo(0@uview.bounds.height.rand); Pen.lineTo(uview.bounds.width@uview.bounds.height.rand); Pen.stroke; }; v.mouseDownAction ...
-
... ang.ar(`[[800, 1000, 1200], nil, nil], 1, 0) * 0.25 }); play({ Klang.ar(`[Array.rand(12, 600.0, 1000.0), nil, nil], 1, 0) * 0.05 }); ( { loop({ play({ Pan2.ar(Klang.ar(`[Array.rand(12, 200.0, 2000.0), nil, nil], 1, 0), 1.0.rand) * EnvGen.kr ...
-
... r.buf_([~b1, ~b2, ~b3].wrapAt(i)); 0.1.wait}; }; ) //cycle through buffers and randomise playback rate ( fork{ 20.do{|i| r.buf_([~b1, ~b2, ~b3].wrapAt(i)); r.rate_(2.0.rand2); 0.1.wait; } }; ) //now for something completely different ( r.r ...
-
... eq=440, amp=0.1, pan=0, gate=1; var z; z = RLPF.ar( Mix.new(Pulse.ar(freq + [0, Rand(-0.4,0.0), Rand(0.0,0.4)] / 4, 0.3, 0.3)), XLine.kr(Rand(4000, 500), Rand(2500, 200), 1), 0.02 ) * Linen.kr(gate, 0.01, 0.7, 0.03, 2); OffsetOut.ar(out, Pa ...
-
... splines, one for each dimension (except the first). ( l = LinearSpline({ { 4.0.rand } ! 6 } ! 12); v = VectorSplineGui(l).gui(nil,1000@1000); v.focused = 1; v.focused = 2; ) ⧉ ✔ Class Methods Inherited class methods Instance Methods . focu ...
-
... Vector2D[width/2, 100], nil, nil, 50, 5); { var loc= RedVector2D[width, height].rand; RedObject(world, loc, RedVector2D[1.5, 1.0].rand, RedVector2D[0, 0], 1.5, 10) }.dup(n); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Co ...
-
... r.buf_([~b1, ~b2, ~b3].wrapAt(i)); 0.1.wait}; }; ) //cycle through buffers and randomise playback rate ( fork{ 20.do{|i| r.buf_([~b1, ~b2, ~b3].wrapAt(i)); r.rate_(2.0.rand2); 0.1.wait; } }; ) //now for something completely different ( r.r ...
-
... 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var mass= 2**1.0.rand; RedObject(world, loc, 0, 0, mass, mass*4); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ var bary= RedVector2D[0, 0], to ...