-
... eq=440, amp=0.1, pan=0, gate=1; var z; z = LPF.ar( Mix.new(VarSaw.ar(freq + [0, Rand(-0.4,0.0), Rand(0.0,0.4)], 0, 0.3)), XLine.kr(Rand(4000,5000), Rand(2500,3200), 1) ) * Linen.kr(gate, 0.01, 0.7, 0.3, 2); OffsetOut.ar(out, Pan2.ar(z, pan, ...
-
... responds by answering a new instance of class BinaryOpUGen which has the two operands as inputs. see also: UGen , Pattern , Function Unary Messages: All of the following messages send the message composeUnaryOp to the receiver with the unar ...
-
fork{y=[Blip,Saw,Pulse,SinOsc];loop{x=play{z=_.ar(rand(2000));z.(y.choose)*z.(y.choose)!2*0.4};(rand(0.2)+0.05).wait;x.free;}} Variation: fork{y=[Blip,Saw,Pulse,SinOsc];loop{x=play{z=_.ar(rand(999));z.(y.choose)*z.(y.choose)*z.(y.cho ...
-
... grav,maxvel,damp //--objects ~objA= RedObject(world, RedVector2D[width, height].rand, RedVector2D[0, 0], RedVector2D[0, 0], 5, 5); //world,loc,vel,acc,mass,size ~objB= RedObject(world, RedVector2D[width, height].rand, RedVector2D[0, 0], Red ...
-
... grav,maxvel,damp //--objects ~objA= RedObject(world, RedVector2D[width, height].rand, RedVector2D[0, 0], RedVector2D[0, 0], 5, 5); //world,loc,vel,acc,mass,size ~objB= RedObject(world, RedVector2D[width, height].rand, RedVector2D[0, 0], Red ...
-
... h, height], wgrav, 99, 0); //dim,grav,maxvel,damp //--interface ~initSize= {2.0.rand}; //object size at creation ~distance= 1; //collision min distance //--objects - the first one always in the middle RedObject(world, RedVector2D[width*0.5, ...
-
... h, height], wgrav, 99, 0); //dim,grav,maxvel,damp //--interface ~initSize= {2.0.rand}; //object size at creation ~distance= 1; //collision min distance //--objects - the first one always in the middle RedObject(world, RedVector2D[width*0.5, ...
-
... 0, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; RedPendulum(world, loc, vel, 0, 60.rand, 20.rand) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0.5.ra ...
-
... 0, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; RedPendulum(world, loc, vel, 0, 60.rand, 20.rand) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0.5.ra ...
-
... ormly-distributed data or quasi-gaussian data - will get different performance ~rand = { |n| n.rand }; ~rand = { |n| n.sum3rand }; ~halffillsize = (~num * 2).pow(1/~dims).floor.asInteger; ~array = { {~rand.value(~halffillsize)}.dup(~dims) } ...