Hi Fernando!

All the usages of =^ (disconnect operator) at the top of your code don't make sense. Maybe you want to replace all of those with => ?

/Stefan


On Mon, Apr 29, 2013 at 12:45 PM, fernando alonso <lualobus@gmail.com> wrote:
Hi users,

I am writting a program to extract audio features but the autoCorr, xCorr always give me a 0 value. ZeroX always give me 0.5 value.

This is a brief of the source code:

//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.





_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users




--
Release me, insect, or I will destroy the Cosmos!