Hi users,
//Definitions for features extraction
adc => FFT fft =^ RMS rms => blackhole;
fft =^ RollOff rolloff => blackhole;
fft =^ Centroid centroid => blackhole;
fft =^ Flux flux => blackhole;
fft =^ ZeroX zerox => blackhole;
adc => AutoCorr autoCorr => blackhole;
fft =^ XCorr xCorr => blackhole;
//Feauture extraction
fft.upchuck() @=> UAnaBlob blobFFT;rms.upchuck() @=> UAnaBlob blobRMS;(blobRMS.fval(0) * 100000) => volumenInst;rolloff.upchuck() @=> UAnaBlob blobRollOff;(blobRollOff.fval(0)*srate )/2 => rollOffInst ;centroid.upchuck() @=> UAnaBlob blobCentroid;(blobCentroid.fval(0)*srate)/2=> centroideInst;flux.upchuck() @=> UAnaBlob blobFlux;blobFlux.fval(0) => similitudInst;zerox.upchuck() @=> UAnaBlob blobZeroX;blobZeroX.fval(0) => zeroXInst; ///<-----------xCorr.upchuck() @=> UAnaBlob blobxCorr;blobxCorr.fval(0) => correlacionCruzadaInst; ///<-----------autoCorr.upchuck() @=> UAnaBlob blobAutocorrelacion;blobAutocorrelacion.fval(0) => autocorrelacionInst; ///<-----------
Kindy Regards.