-
... 40, 360], 0.2)); inB = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chainA = FFT(bufnumA, inA); chainB = FFT(bufnumB, inB); chain = PV_Morph(chainA, chainB, MouseX.kr); Out.ar(out, IFFT(chain).dup); }).play(s,[\out, 0, ...
-
... nil, 0, 1/n*width) .coupling_(0.1/n) .freq_(0.1.rand) .phase_(2pi.rand) }; //--loop w.draw{ world.objects.do{|o| world.objects.do{|p| if(p!=o, { o.couple(p); }); }; }; world.objects.do{|o| o.update}; //--render Pen.width= 5; Pen.strokeColo ...
-
... hysteresis=20; var input, onsets; input = PlayBuf.ar(1, b, BufRateScale.kr(b), loop:1); onsets= SLOnset.kr(input,20,5,5,threshold,hysteresis); Out.ar(0, input + (SinOsc.ar(440,0,0.1)*Decay2.ar(K2A.ar(onsets), 0.01, 0.05))); }.play; ) //by ...
-
... 5) }, Pseq([1, 2, 3, 4, 5, 6], inf) * 4 + 65), inf); b = c.asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, b.next.midicps]); 0.12.wait; }) }).play; ) // or, more concisely: p = Pbind( \instrument, \help_sinegrain, \midinote, Pn(P ...
-
... 40, 360], 0.2)); inB = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chainA = FFT(bufnumA, inA); chainB = FFT(bufnumB, inB); chain = PV_XFade(chainA, chainB, MouseX.kr); Out.ar(out, IFFT(chain).dup); }).play(s,[\out, 0, ...
-
... CTRL key to reset) env attack and release time in seconds bus output bus index loop keep repeating the soundfile. Note: not smooth because of file preloading folder select a file to set path to all soundfiles. It is also possible to drag f ...
-
... ork a thread that plays some sounds ( Fdef(\freq, 440); Fdef(\dur, 0.2); fork { loop { s.sendMsg("/s_new", "gpdef", -1, 1, 1, \freq, Fdef(\freq).value); Fdef(\dur).value.wait; } }; ) // some modifications Fdef(\freq, Fdef(\midinote, 60).mid ...
-
... 2; var in, chain; in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chain = FFT(bufnum, in); // uncomment the line below to compare while ... // chain = PV_MagFreeze(chain, MouseY.kr > 0.5 ); // commenting the line bel ...
-
... List.do { |n| n.setUni(1.0.rand) }; Tdef(\pullDiag, { // toward [1, 2, 3, 4]/4; loop { exprand(2.0, 8.0).wait; rrand(20, 50).do { \up.postln; 0.15.wait; g.pullToward([1, 2, 3, 4]/4, 0.04, 0); }; } }).play; Tdef(\nudgeDown, { loop { exprand( ...
-
... e_(false); b = MindReadingMachine.new.verbose_(false); c = 0; d = 0; ) ( fork { loop { y = a.next(x ? [0, 1].choose); if(x == y) { c = c + 1 }; x = b.next(y); x.postln; if(x == y) { d = d + 1 }; y.postln; 0.2.wait; x = y; } } ) // sonified ...