-
... s; // sum the position velSum = velSum + thisBoid.vel; // sum the velocities // loop again boidList.do{|thatBoid, j| var dist; // don't check for boids that are the exact same object if ((thisBoid === thatBoid).not) { // get the distances t ...
-
... synthdefs directly if necessary s n sound begin end length accelerate cps unit loop delta legato sustain amp gain channel pan note freq midinote octave latency lag offset cut orbit cycle // core, dirt public // you should use this in your ...
-
... 1 ).value_( 0.25 ); m.elementAt( \led, 1 ).value_( 1 ); ( Tdef( \autoaction, { loop{ m.elementAt( \motor ).value_( 1.0.rand ); 1.0.wait; m.elementAt( \led, 0 ).value_( 1.0.rand ); 1.0.wait; m.elementAt( \led, 1 ).value_( 1.0.rand ); 1.0.wa ...
-
... ize; //"dropSize: %\n".postf(maxKeySize); list = Array.new(maxContextSize * 2); loop { // fill up the list dropSize.do { outval = stream.next(inval); outval !? { list = list.add(outval) }; // overridden in subclass. does nothing here: inval ...
-
... er ({ Tdef(\flatcatSim).stop.play }, 1); // stop this tdef from unintended self-looping (happens sometimes) Tdef(\allLEDs).clear; // NetLib quark has this: NetAddr.myIP // nUFO NTMI network address is: "169.254.1.2" // close nUFO device whe ...
-
... ) c.ct = 3; a.ct = 5 c.replace({\in.ar(0).range(-30, rrand(10, 10))}); ( fork { loop { c.replace({\in.ar(0).range(-30, rrand(10, 100))}); 3.wait; } } ) b.ct_(1).replace({SinOsc.ar(1 + \fm.ar(0))}) a.replace({SinOsc.ar(1 + \fm.ar(0))}) b.rep ...
-
... wiring.removeAt(wiring.indexOfEqual([v, e[0]] )) ; // stolen from graphista // loop if (v == e[0], { i = 10+(i*10) ; labelList = labelList.add( // edge labels GUI .staticText.new // 20 is empirical (w, Rect.new(tx-(i*0.5)-large, ty-(i*0.5) ...
-
... and(300)); }); }.select{|x| x.notNil}; }.flat; syns= {Synth(\imp2)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen. ...
-
... Vol transport buttons: nk1: rew, play, fwd: rand, prev, next influx preset nk1: loop, stop, rec: rand, prev, next MainFX preset ***********/ /* // flexify name in order to build multiple MKtls with this file: // TEST: m.gui */ // Use makeMK ...
-
... + ir.pathOnly ++ "Flu").postln; { BufWr.ar(FoaDecode.ar( PlayBuf.ar(4, bufWXYZ, loop: 0, doneAction: 2), MoscaUtils.b2a()), bufAformat, Phasor.ar(0, BufRateScale.kr(bufAformat), 0, BufFrames.kr(bufAformat))); Out.ar(0, Silent.ar); }.play(se ...