-
... ; 0.2.wait; s.sync; thesynth = { Line.kr(0,0,1,doneAction:2); KMeansRT.kr(buf, {PinkNoise.kr}.dup(d), numclust, gate:1, reset:0, learn:0); }.play(s); 0.2.wait; s.sync; 1.0.wait; buf.loadToFloatArray(action: {|data| this.assertArrayFloatEqua ...
-
... e quiet enough for a long enough time { var signal = Decay.ar(Impulse.ar(0), 2, PinkNoise.ar(0.2)); DetectSilence.ar(signal, doneAction: Done.freeSelf); signal }.play; ⧉ ✔ If the input signal starts with silence at the beginning of the synt ...
-
... ithin: 0.1); // now put in a sound process that uses \freq: Ndef(\a, { Ringz.ar(PinkNoise.ar, \freq.kr(440).lag(0.1), 0.3) }).play; // See examples below for how to use this in controllers, // but first see their different behaviors with sl ...
-
... .scope(1, zoom:8); ⧉ ✔ Broad Spectrum Noise Generators ClipNoise , WhiteNoise , PinkNoise , BrownNoise , GrayNoise arguments: mul, add { ClipNoise.ar(0.2) }.scope(1); { WhiteNoise.ar(0.2) }.scope(1); { PinkNoise.ar(0.4) }.scope(1); { BrownN ...
-
... = s.audioBusAllocator.alloc( 4 ); a = FoaMatrixFade(0, b); ~foa = { FoaPanB.ar( PinkNoise.ar(0.25), LFSaw.kr(0.3).range(0,2pi)) }.play(outbus: b) // swap to full focus to the left a.matrix_( FoaXformerMatrix.newFocus(pi/2, pi/2) ) // swap t ...
-
... ).range(0, 700) + 220) ); SelectXFocus.ar(mx * n, a, my * n) * 0.2 + OnePole.ar(PinkNoise.ar(0.5 ! 2), 0.4) * Line.kr(0, 1, 3); }.play; ) // jimmy played harmonica in the pub where I was born // (hh) (jrh) (cc 2006) ( { var blas, zieh, mx, ...
-
... ree; // using as a audio monitor p = BusPlug.audio(s, 2); d = { Out.ar(p.index, PinkNoise.ar([0.1, 0.1])) }.play; p.play; // monitor whatever plays in p (the execution order does not matter) d.free; d = { Out.ar(p.index, PinkNoise.ar([0.1, ...
-
... trig), Decay.kr(trig, TRand.kr(0.1, 2, trig), 3.reciprocal)); } ); var detect = PinkNoise.ar(Decay.kr(Coyote.kr(sounds, fastMul: 0.6, thresh: 0.001), 0.2)); Out.ar(0, [detect, sounds]); } ).send(s); ) x = Synth.new("coyote") x.free; ⧉ ✔ hel ...
-
... ssible by using doneActions alone: play { var env = Line.kr(1, 0, 2); var sig = PinkNoise.ar(env); FreeSelf.kr(TDelay.kr(Done.kr(env), 3)); GVerb.ar(sig, 70, 7); } ⧉ ✔ Actions A number of UGens implement doneActions. These allow one to opti ...
-
... UGens together? This turns out to be equally simple. All we need is addition: { PinkNoise .ar(0.2) + SinOsc .ar(440, 0, 0.2) + Saw .ar(660, 0.2) }.play; Saw is another type of oscillator, with a waveform that looks like a sawtooth. Note tha ...