Inputting complex data to kiss_fft

  • Anonymous - 2012-03-22

    I have a complex signal that I want to pass into the kiss_fft function,
    however when I try to populate the real and imaginary parts of the
    kiss_fft_cpx struct I get compile errors (subscript requires array or pointer
    type) I may be doing this completely wrong - but this is what I attempted:

    = dataToProc_; // There's more that goes on here - but for simplicity let's
    say this is all the loop does

    rawData->i_ = (x_/0x1000); //extract the imaginary from the data

    rawData->r_ = floor((double)(x_/0x1000)); //extract the real from the data

    y_ = i;



    // Do other stuff

    Is there something I'm missing here?

    I need to extract the complex data before I send it into the FFT - so I need
    some (better) way of populating my rawData complex structure.

    Note that I'm using QT4.8 with MSVC2010


    ~ A__

  • Mark Borgerding

    Mark Borgerding - 2012-03-22

    I can see from the email that got sent that you are putting your square
    brackets in the wrong place.

    I've tried two different ways to post a reply to this but the dumb bbcode
    markup won't allow square brackets.

    Sourceforge is trying hard to become irrelevant. Ask future questions on -- much better forums.

  • Roger Wellington-Oguri

    Mark, FWIW, the email notifications with the square brackets that I got came
    through fine.

  • Anonymous - 2012-03-22

    Just so that it's here:

    rawData_.i = (x_/0x1000);

    rawData_.r = floor((double)(x_/0x1000));

    instead of:

    rawData->i_ = stuff;

    rawData->r_ = stuff;

    Thank you!

    ~ A__


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks