-
... n.ar; var source = PlayBuf.ar(1,b,loop:1); var analysis = BeatStatistics.kr(FFT(LocalBuf(1024),source)); analysis.poll(100); source }.play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/Extensions/SC3plugins/SCMIRUGens/HelpSource/Cl ...
-
... oid, resynth; // sig = AudioIn.ar; sig = PlayBuf.ar(1, b, loop: 1); chain = FFT(LocalBuf(512), sig); chaintrig = chain > -0.001; features = [SpecCentroid.kr(chain)]; // just one 1D feature here classif = KMeansRT.kr(~kbuf, features, k, chai ...
-
... es more delay. s.boot; s.scope; a = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048)) }.play; a.release; ⧉ ✔ Inherited class methods Instance Methods Inherited instance methods helpfile source: /usr/local/share/SuperCollider/HelpS ...
-
... MouseY.kr(1000, 100, 1); in = Blip.ar(freq, MouseX.kr(1, 100, 1)); chain = FFT(LocalBuf(2048), in); centroid = SpecCentroid.kr(chain); centroid.poll(10); in.dup * 0.1 }.play ) x.free; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/Hel ...
-
... = PlayBuf.ar(1,b,loop:1); var onsetanalysis = OnsetStatistics.kr(Onsets.kr(FFT(LocalBuf(512),source),0.125),2.0); onsetanalysis.poll(10); source }.play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/Extensions/SC3plugins/SCMIRUGens ...
-
... hods Inherited instance methods Examples // indexing into a table ( { var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]); var freq = FoldIndex.kr(buf, MouseX.kr(0, BufFrames.ir(buf) * 3)); SinOsc.ar(freq) * 0.1 }.play; ) // the same ...
-
... dup(100); // Let's ignore phase for now phases = 0.dup(100); chain = FFTTrigger(LocalBuf(512), 0.5); // Now we can do the packing chain = PackFFT(chain, 512, [mags, phases].flop.flatten, 0, 99, 1); sig = IFFT(chain); sig.dup }.play ) x.free ...
-
... hods Inherited instance methods Examples // indexing into a table ( { var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]); var freq = WrapIndex.kr(buf, MouseX.kr(0, BufFrames.ir(buf) * 3)); SinOsc.ar(freq) * 0.1 }.play; ) // the same ...
-
... fftod, { |out| var source1, detect, chain; source1 = SoundIn.ar(0); chain = FFT(LocalBuf(2048), source1); detect = PV_JensenAndersen.ar(chain, threshold: MouseX.kr(0.1, 1.0)); Out.ar(out, SinOsc.ar([440, 445], 0, Decay.ar(0.1 * detect, 0.1) ...
-
... n = Impulse.ar; var out = LPF.ar(son, MouseX.kr(100, 10000, 1)); var fft1 = FFT(LocalBuf(b.numFrames), son, wintype: 1); var fft2 = FFT(b, out, wintype: 1); // As with most PV_ ugens, the result is *actually* stored in the first fft buf var ...