-
... = 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 ...
-
... FromProxy setProxy (name) set the proxy from a named setting z.setProxy(\coco); Randomizing presets ( // morphing and randomizing settings require specs for all params! Spec .add( \dens , [1, 1000, \exp ]); Spec .add( \ring , [0.0001, 100, ...
-
... hen mix the results: ( play({ Mix .new( Array .fill(8, { SinOsc .ar(500 + 500.0.rand, 0, 0.05) }) ); })) The *fill methods allow this idiom to be written more concisely: ( play({ Mix .fill(8, { SinOsc .ar(500 + 500.0.rand, 0, 0.05) }); })) ...
-
... // example ( var a; a = Prout ({ loop { 1.yield; 2.yield; 7.yield; 10.do { 1.0.rand.yield } }}); a.asStream.nextN(100).plot; ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( ...
-
... 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 ...
-
... ounds; x = CompositeView (w, w.view.bounds.insetBy(20,20)) .background_( Color .rand) .resize_(i); y = CompositeView (x, x.bounds.moveTo(0,0).insetBy(20,20)) .background_( Color .rand) .resize_(i); y.decorator = FlowLayout (y.bounds).gap_(0 ...
-
... 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 ...