-
... ,mass,size att= RedHiddenObject(world, RedVector[0, 0]); //hidden attractor //--loop w.draw{ att.loc= w.mouse; Pen.fillColor= Color.grey(1, 0.5); Pen.strokeColor= Color.white; world.objects.do{|o, i| var xy; var trg= o.addForceWander1D; o.a ...
-
... Paccumbounce (-1.0, 1.0, Pwhite (-0.05, 0.1, inf ), inf ).asStream; r = fork { loop { p.next.postln; 0.1.wait } }; r.stop; p.reset; p.nextN(200).plot;
-
... r3D[2, 2, 2].rand2, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(0.5); Pen.strokeRect(Rect.aboutRedVector3D(RedVector[width*0.5, height*0.5, depth], width*0.5, width, height, depth, s, ...
-
... 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( Env .sine(4), 1, 0.02, doneAction: 2); }); 2.wa ...
-
... 3, 12], inf ) ); 3.do { { var x = a.asStream; var freq = rrand(72, 84).midicps; loop { Synth ( \help_sinegrain , [ \freq , freq]); (0.25 * x.next).wait; } }.fork; }; )
-
... r3D[2, 2, 2].rand2, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(0.5); Pen.strokeRect(Rect.aboutRedVector3D(RedVector[width*0.5, height*0.5, depth], width*0.5, width, height, depth, s, ...
-
... r(bufnum); var idSource = Demand.kr(trig, 0, Dbufrd(bufnum, Dseries(0, 1, num), loop: 0)); var stop = FreeSelfWhenDone.kr(idSource); var id = Select.kr((trig > 0), [neutralID, idSource]); [trig, id].poll(trig); // can remove, just for displ ...
-
... var sig, chain; sig = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chain = FFT(LocalBuf(2048), sig); chain = PV_RandComb(chain, MouseY.kr, Impulse.kr(0.4)); Out.ar(out, IFFT(chain).dup); }).play(s, [\soundBufnum, c.bu ...
-
... .size.rand, 8+0.1.rand2); Pseq (x,1); }); x = Pn (a, inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , (x.next*5+70).midicps]); 0.13.wait; }) }).play; ) // using event streams ( a = Plazy ({ var x, y; x = Array .series(r ...
-
... ,{arg r=0; var sig; sig=In.ar(~b3); RecordBuf.ar([sig,sig],~buff.bufnum,run:r,loop:0); }; ).add; SynthDef(\play,{ Out.ar(0,PlayBuf.ar(2,~buff,rate:-1,loop:1)*EnvGen.ar(Env([0,0.5,1.0,0.5,0],[6,5,10,9]))*0.2); }; ).add; SynthDef(\pe ...