-
... BufRd.ar(1, w.buffer, Line.ar(startFr, endFr, dur, doneAction: 2)) }.play; ) // loop buffer segments with a Phasor: ( x = { arg start = 0, end = 128, playRate = 1; BufRd.ar(1, w.buffer, Phasor.ar(0, playRate * BufRateScale.kr(w.buffer), sta ...
-
... ry.new; updateFunc = {}; moveFunc = { [0,0] }; guiUpdate = {}; task = Task.new{ loop{ this.move( (moveFunc.value * moveScale).asPoint ); dt.wait; }; }; } start{ task.start; } stop{ task.stop; } addParameter{ |key,default,weight| weight = we ...
-
... if you want to play the buffer in //sig = PlayBuf.ar(1, d, BufRateScale.kr(d), loop: 1); chain = FFT (b, sig); onsets = Onsets .kr(chain, MouseX .kr(0,1), \rcomplex ); // You'll hear percussive "ticks" whenever an onset is detected pips = ...
-
... nd the falseFunc. While The while message implements conditional execution of a loop. If the testFunc answers true when evaluated, then the bodyFunc is evaluated and the process is repeated. Once the testFunc returns false, the loop termina ...
-
... use \freq.kr(440) // here we use this system to generate argument names in a loop ins = ~matrix_in_count.collect { arg in_idx; InFeedback.ar(( \in++in_idx ).asSymbol.kr(100), 2); }; // for each output, sum the inputs with a di ...
-
... 0.3); // record some PinkNoise RecordBuf .ar(noise, bufnum); // by default this loops }).play(s,[ \out , 0, \bufnum , b]); ) // free the record synth after a few seconds x.free; // play it back ( SynthDef ( "tutorial-playback" ,{ arg out=0, ...
-
... uffer playback arguments: numChannels, buffer number, rate, trigger, start pos, loop // read sound b = Buffer .read(s, "sounds/a11wlk01.wav" ); { SinOsc.ar(800 + (700 * PlayBuf .ar(1,b, BufRateScale .kr(b), loop:1)),0,0.3) }.scope(1); // lo ...
-
download drum loop: https://www.dropbox.com/s/6yyrm7ivwqmxbdi/jloop2.wav?dl=0 // Morning jazz2 by Notgoodenough ( ~buff1 = Buffer.read(s, "jloop2.wav".resolveRelative); ~mthue = {arg i, base, mul;(i * mul).asDigits(base).sum}; ~eu = ...
-
... +(v2.squared*l2*m2*cos(a1-a2)))) / (l2*(2*m1+m2-(m2*cos(2*a1-(2*a2))))); }; //--loop w.draw{ var o0, o1, a0, a1; o0= world.objects[0]; o1= world.objects[1]; a0= angularAccel1.value(wgrav[1], o0.angularVel, o1.angularVel, o0.theta, o1.theta, ...
-
... +(v2.squared*l2*m2*cos(a1-a2)))) / (l2*(2*m1+m2-(m2*cos(2*a1-(2*a2))))); }; //--loop w.draw{ var o0, o1, a0, a1; o0= world.objects[0]; o1= world.objects[1]; a0= angularAccel1.value(wgrav[1], o0.angularVel, o1.angularVel, o0.theta, o1.theta, ...