-
... able. If you read the code, you can pick up a lot of tricks for manipulating FFT data on the client side. For instance, I'm doing the 16x oversampling by expanding a 32-point FFT out to 512 points (inserting zeros in the middle, so that ...
-
... (modulatable) // window: the suggested grain size, will be resized to closest fft window size // amp: amplification var trigPeriod, sig, chain, trig, pos, fftSize; // Calculating fft buffer size according to suggested window size ...
-
... // jcc // // Select all code and evaluate ( s.waitForBoot({ // vars for fft var sfBuf, soundFile, sfPath, sfview, spectrum, win, selectionSpec, openButton, sfselDisp, zoButton,ziButton,srButton,slButton,cursorFrame, sfDispArray, s ...
-
... , median: 7); freq = freq * hasFreq* 0.01; freq.poll; chainSpec = FFT(LocalBuf(2048, 1), in); centroid = SpecCentroid.kr(chainSpec); centroid = ((centroid * 0.0005)-0.3)*10; // new possition determined by centroid ...
-
... th - width should be an integer - I think 4 is the theoretical optimum var fftsize = 512, width=4; var in, chain, in2, chain2, out; // timbre source - vocal sample in = PlayBuf.ar(1, c, BufRateScale.kr(c), loop: 1); ...
-
template code for sending lots of data (1024 fft values 61 times per second) from sc to processing. sound function from an old sc-tweet. updated to work with sc3.9 and processing 3.3.6 /* //--processing code: import oscP5.*; import net ...
-
... netP5.*; OscP5 oscP5; final int BUFFERSIZE= 2048; //should correspond with fft size in supercollider final int BUFFERSIZE2= BUFFERSIZE/2; float[] fftArrayHi; float[] fftArrayMd; float[] fftArrayLo; void setup() { size(1280 ...
-
... :) ( { var snd, reset; snd = AudioIn.ar([1,2]); reset = Onsets.kr(FFT(LocalBuf(512), snd), 0.7); snd = ~stutter.(snd, reset, 0.09); snd = DelayC.ar(snd, 0.2, 0.2); snd!2 * 0.3; }.play; ) // Of c ...
-
... re options to freeze playback of a sound file (a) by playhead movement (b) by FFT freeze q = q ? (); // load buffers // e.g. mono sound (see below) q.audioBuffer = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav"); ( ...
-
... \fbTimer){ m = (Dust.ar(0.5!2)*20).tanh+\in.ar(0!2); r = Timer.kr(Onsets.kr(FFT(LocalBuf(128)!2,m))); c = CombL.ar(m+(LocalIn.ar(2)*0.8),4,r.clip(0.0001,4),r*4); l = Resonz.ar(c,TRand.kr(20,20000,m),0.1,1000).tanh; LocalOut.ar(m+l ...