-
... a routine that can pause under certin conditions: ( c = Condition .new; fork { loop { 1.wait; "going" .postln; c.wait } }; ) c.test = true ; c.signal; c.test = false ; // the same, using hang ( c = Condition .new; Routine { 1.wait; "waited ...
-
... Deg = 0; ~eleDeg = 0; ~bufnum; ~makeRoutine = { |self| self.routine = Routine { loop { self.satieInstance.makeKamikaze( synthDefName: \grainBufASR, group: self.group, synthArgs: [ \bufnum, self.bufnum, \rate, rrand(self.rateMin, self.rateMa ...
-
... ol; var server, poolName, tempo; var silentBuf, toshioNodeSampleIndexArray; var loopmode; *new {arg node, toshioArray, userview, silentBuf; ^super.new.initXiiToshioAgent(node, toshioArray, userview, silentBuf); } initXiiToshioAgent {arg ano ...
-
... ject(world, loc, nil, nil, 10, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ theta= theta+angularVel; if(0.005.coin, {world.gravity= RedVector2D[0, -0.7.rrand(0.7)]; world.gravity.postln}); nWaves.do{|i| var x= theta; world. ...
-
... ab the FFT buffer and peek at the magnitudes ( w = Window .new.front; t = Task {loop{ 0.1.wait; b.loadToFloatArray(action: { |data| { w.view.children.do( _ .remove); w.refresh; data[2..].clump(2) .collect { |a| (a[0].squared + a[1].squared) ...
-
... ject(world, loc, nil, nil, 10, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ theta= theta+angularVel; if(0.005.coin, {world.gravity= RedVector2D[0, -0.7.rrand(0.7)]; world.gravity.postln}); nWaves.do{|i| var x= theta; world. ...
-
... ld occur (soft takeover). ( e = (amp: 0.1, dur: 0.2); Tdef ( \test , { var dur; loop { dur = e.dur; (amp: e.amp, dur: dur, degree: 7.rand).play; dur.wait; }; }).play; ) e.put( \amp , 0.03); // just set it e.put( \amp , 0.1); e.softPut(\amp, ...
-
... ect(world, loc, vel, acc, 1.5, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o| o.addForce(o.world.gravity); o.update; world.contain(o); //Pen.addRect(Rect.aboutPoint(o.loc.asP ...
-
... safer EZSlider(w, 340@30, \knowLastV, \amp, Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Ndef(\test).softVol_(sl.value, 0.05, lastVal: lastVal); lastVal = newVal; \dummy.yield; } }); ) ⧉ ✔ helpfile source: /usr/local/share/ ...
-
... 0, 0.2)), 1200); inB = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chainA = FFT(bufnumA, inA); chainB = FFT(bufnumB, inB); chain = PV_CommonMag(chainA, chainB, MouseX.kr(0, 50), MouseY.kr); Out.ar(out, IFFT(chain).dup ...