-
... ar win = Window(); var slider= Slider(); var value = 0; var routine = Routine({ loop { value = 101.rand / 100; // Interacting with a widget from within a routine: // instructions must be nested in a function, and deferred { slider.value_(va ...
-
... aSignal.source = { HPF.ar(PlayBuf.ar( ~hoaSoundFile.numChannels, ~hoaSoundFile, loop:1 ), 100) }; ~hoaSignal.fadeTime = 1; ) ⧉ ✔ Let's make the decoder: HOADecLebedev26.loadHrirFilters(s); HOADecLebedev26.hrirFilters.size; ( ~decoderOrder = ...
-
... sndbuf; var in, chain, out; in = PlayBuf.ar(1, sndbuf, BufRateScale.kr(sndbuf), loop: 1); chain = FFT(fftbuf, in); chain = PV_MagMap(chain, envbuf); out = IFFT(chain); Out.ar(1, out); }).add; s.boot; // the fft buf s.sendMsg(\b_alloc, 0, 20 ...
-
... Pbind( \instrument, a.def(2, simple: true), \buffer, b.asPxrand(b.numBuffers), \loop, 0, \rate, 1, \dur, Pfunc({|ev| ev[\rate].reciprocal * ev[\buffer].duration}), \amp, 0.85 ) ).play; ⧉ ✔ helpfile source: /tmp/scquark_hs/AllBuf/HelpSource/ ...
-
... swer is 0.00092713799949706 as far as BeatSched is concerned. but if you try to loop like this, you will suffer from rounding errors. mostly you would never set up a loop like this, mostly you just want to know when the next even beat is so ...
-
... , doneAction: 2); in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 0); // note the window type and overlaps... this is important for resynth parameters chain = FFT(bufnum, in, 0.25, 1); chain = PV_RecordBuf(chain, recBuf, ...
-
... 3]; human.state.timbre= arr[4]; human.state.centroid= arr[5]; }) }; s.sync; //--loop w.draw{ world.objects.do{|o, i| //iterate all objects in this world human.loc= w.mouse; o.update; //object update world.contain(o); //keep within world bor ...
-
... g out to env = Env([0, 1, 0], [1, 4], [3, -4], 1); // create a controlenv and a loop of CtkNotes to play inside the CtkGroup freq = pnotes[\control].note(addAction: \head, target: group) .outbus_(bus1) // need to use the .bus method on CtkC ...
-
... et = Buffer.read(s, ExampleFiles.child); ( { var input = PlayBuf.ar(1, ~target, loop: 1); PartConv.ar(input, ~fftsize, ~irspectrum.bufnum, 0.5) }.play ) // convolve with live input ( { var input = SoundIn.ar(0); PartConv.ar(input, ~fftsize, ...
-
... .05) .phase_(2pi.rand) .phase2_(2pi.rand) .amp_(0.85) }; ~showLinks= false; //--loop w.draw{ Pen.strokeColor= Color.grey(0.5, 0.5); world.objects.do{|o, i| o.couple(world.objects.wrapAt(i-1), world.objects.wrapAt(i+1)); }; world.objects.do{ ...