-
... Pan.qtz"; m.resize = 5; m.start; ) s.boot; // use mouse to set pan position ( { loop({ { Pan2.ar(Saw.ar(mul: 0.1) * EnvGen.ar(Env.perc, timeScale: 4, doneAction: Done.freeSelf), m.x_pos) }.play; 1.wait; }); }.fork(AppClock); ) ////////// So ...
-
... :2 ); playGrain = PlayBuf.ar(~hoaNumChannels.asInteger, buffer, startPos:start, loop:1 ) * env; monoBeam = HOABeamHCard2Mono.ar(~order.asInteger, playGrain, az, el); reDirect = HOAEncoder.ar(~order.asInteger, monoBeam, az, el); OffsetOut.ar ...
-
... ].postln; Synth(\sinGrain, [\out, chan, \freq, freq, \dur, 0.005]); 0.1.wait; }.loop; }); TempoClock.default.schedAbs(TempoClock.default.elapsedBeats.roundUp(1), rout); }); ⧉ ✔ This is the output: Left channel Right channel Logical vs Physi ...
-
... re default repeats = inf of PLshuf has no effect: // new permutation with every loop as Pshuf has repeats = 1 ~a = [ Pshuf((60..65)), 70, PLshuf((75..80)) ]; // both Patterns have repeats = inf, // permutation is kept ~a = [ PLshuf((60..65) ...
-
... 0, 2], Pseq([74, 75, 76, 77]), #[2, 3, 3], nil, nil ], inf).asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, a.next.midicps]); 0.1.wait; }) }).play; ) ( Pfsm([ #[5, 6, 7], // entry states // e1 (== state 0) Pbind(\dur, Pseq([1/8, 3 ...
-
... 30 notes within the specified duration"). ( p = Pspawner { |sp| var notes, dur; loop { notes = Pseries( rrand(-9, -5), Pconst(16, Pwrand([1, 2, 3, 4], [1, 4, 4, 2].normalizeSum, inf)), inf ).asStream.all; dur = exprand(2.5, 6.0); sp.par(Pbi ...
-
... oise0.ar(530).range(0, BufFrames.kr(buf))); PlayBuf.ar(2, buf, MouseX.kr(1, 2), loop: 1) * 0.1 }.play ) // avoid this (unless you like the glitch) by clearing buffer first: ( { var buf = LocalBuf(2048, 2).clear; BufWr.ar(WhiteNoise.ar(1.dup ...
-
... :2); Out.ar( out, Pan2.ar(index * 0.1, LFNoise1.kr(1)) ) }).send(s); ) ( fork { loop { Synth(\post, [\bufnum, b.bufnum]); rrand(0.3, 0.6).wait; } } ) // slowly play the classic example system by Emil Post ( b.zero; // empty the buffer. { va ...
-
... uf, freqbuf; var in, chain; in = PlayBuf.ar(1, sndbuf, BufRateScale.kr(sndbuf), loop: 1); chain = FFT(fftbuf, in); chain = PV_MagBuffer(chain, magbuf); chain = PV_FreqBuffer(chain, freqbuf); IFFT(chain); }).add; SynthDef(\magbuffersynth, {a ...
-
... .rand.round(50), (height*0.5).rand.round(50)+(height*0.4)]); }.dup(nRocks); //--loop w.draw{ Pen.strokeColor= Color.grey(0.7, 0.9); objs.do{|o, i| o.addForce(o.world.gravity); //add gravity objs.copyToEnd(i+1).do{|oo| o.collide(oo)}; o.upda ...