-
... , 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 ...
-
SpecFlatness Spectral Flatness measure SpecFlatness.kr(chain) Given an FFT chain this calculates the Spectral Flatness measure, defined as a power spectrum's geometric mean divided by its arithmetic mean. This gives a measure which ranges f ...
-
FFTTrigger Outputs the necessary signal for FFT chains, without doing an FFT on a signal FFTrigger(buffer, hop, polar) buffer - a buffer to condition for FFT use hop - the hop size for timing triggers (defaults to 0.5) polar - a flag. If 0. ...
-
... 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); ...
-
... ch18.htm in - processing target kernel - processing kernel. framesize - size of FFT frame, must be a power of two ( { var input, kernel; input = SoundIn .ar(0); kernel = Mix .ar( LFSaw .ar([300,500,800,1000]* MouseX .kr(1.0,2.0),0,0.25)); / ...
-
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 ...
-
... hannels containing the input signal and the transformed signal. HilbertFIR uses FFTs and a 90 degree phase shift to transform the signal, and results in a delay equal to the size of the buffer used for the FFT divided by the sample rate. Th ...
-
... Ugen in order to get amplitude out of the UGen */ XiiOnsets : UGen { *kr { |in, fftbuf, trackbuf, thresh=0.5, type=\power, extchain=false, relaxtime=0.1, floor=0.1, smear=0, mingap=0.05, medianspan=11| var chain, odf, onsets, odpower; ^{ // ...
-
... the GNU GPL. See LICENSE.txt for more details. */ OnsetsDS : UGen { *kr { |in, fftbuf, trackbuf, thresh=0.5, type=\power, extchain=false, relaxtime=0.1, floor=0.1, smear=0, mingap=0.05, medianspan=11| var chain, odf, onsets; "OnsetsDS is d ...
-
... rigger signal which is 1 when an onset is detected, and 0 otherwise. chain - an FFT chain threshold - the detection threshold, typically between 0 and 1, although in rare cases you may find values outside this range useful odftype - the fun ...