-
... aSignal.source = { HPF.ar(PlayBuf.ar( ~hoaSoundFile.numChannels, ~hoaSoundFile, loop:1 ), 100) }; ~toaSignal.fadeTime = 1; ) ⧉ ✔ Let's make two more nodes that generate 2nd and 1st order HOA sounds to go with it. ( ~soaSignal = NodeProxy.ne ...
-
... on expects mono input ( { var harmonic, percussive; var source = PlayBuf.ar(1,d,loop:1); var fft = FFT(a,source,0.5); //can try overlap 0.25 harmonic = PV_Copy(fft, b); percussive = PV_Copy(fft, c); //#harmonic,percussive = MedianSeparation ...
-
... r can keep going indefinitely. ( p = Pspawner({ |sp| // sp = the Spawner object loop { // run a new pattern in parallel // the pattern is finite // after a few events, it stops and the Pspawner forgets about it sp.par(Pbind( \degree, Pserie ...
-
... ), pos = Phasor.ar(trig, 1, start, 1e26, start), sig = BufRd.ar(1, bufnum, pos, loop: 0), decay = Decay2.kr(trig, 0.01, 0.1); (sig * decay) ! 2 }.play(args: [t_trig: c, bufnum: b]); ) // TempoClick uses server.latency, just like patterns by ...
-
... teScale.kr(b), env, Demand.ar(env, 0, Drand((2..5)/10, inf) * BufFrames.ir(b)), loop: 0, ) * env) } ! 2 ; }.play ) x.release // variant with multichannel expansion // two 8 ch trigger envelopes are used for L and R mixes ( x = { var buf, en ...
-
... vent Examples Using Rest instances in a pitch stream ( Pbind( \degree, Pif( 0.1.loop.coin, Pseq([Rest(), 7], inf), // every second is a Rest Pseries(0, 1, inf).fold(-7, 7) ), \dur, 0.125 ).play ) ⧉ ✔ Using a Rest instance in a duration stre ...
-
... Spec(\sustain, [0.003, 3, \exp]); // define what the Tdef does Tdef(\a, { |env| loop({ ( instrument: \pingbend, freq: env[\freq], bend: env[\bend] + env[\bendVar].rand2, sustain: env[\sustain], pan: 1.0.rand2 ).play; env[\dt].wait; }) }); T ...
-
... 001, 0.03, 0.4), doneAction: Done.freeSelf) }; // jittery tone. ( r = Routine { loop { 200.do { arg i; ~x.spawn; (0.005).wait; }; 1.wait; } }.play; ) ProxySynthDef.sampleAccurate = true; // steady tone, because sample accurate. ~x.rebuild; ...
-
... us = 1| HOAEncoder.ar(~order, PlayBuf.ar(1, ~buffer, BufRateScale.kr(~buffer) , loop:1), azimuth, elev:0, gain:0, plane_spherical:1, radius: radius )}; w = Window("Slider2D", Rect(100, 100, 300, 300)); t = Slider2D(w, Rect(20, 20, 260, 260) ...
-
... nt.theta + 0.5pi); targPoint = Point(x, y) - Point(200, 200); // trunc to avoid loops due to fp math targRotate = (targPoint.theta - actPoint.theta).trunc(1e-15); // wrap around if(targRotate.abs > pi, {targRotate = (2pi - targRotate.abs) * ...