Re: IFFT to Wavetable ?




"Robert A." <invalid@xxxxxxxxxxx> wrote in message
news:WBT4g.168$UY5.152@xxxxxxxxxxx
Hi guys,

I'm trying to implement an algorithm where you fill in real and imaginary
arrays then do an Inverse FFT to convert them to a wavetable.

The code I'm basing it from is like this:

double real[4];
double imag[4];

// fill them in

double wavetable[8];

IFFT(real,imag,wavetable);

It's using an FFT library (in a DLL) so I don't know what's going on. The
thing I don't understand is how I get a real array of length 8 from a
complex array of length 4.
Spect you are getting 4 real values and 4 imag values returned - you want to
find how they are ordered ?

The FFT I use takes real and imag arrays and returns the result in the
same arrays, like this:

FFT(int dir, int n,double* real,double* imag);

...so how do I combine them to make the wavetable ? The wavetable is
supposed to be perfectly loop-able also.

Why not use some other freely available fft routine to generate some test
vectors and results then you can compare your outputs to find out what is
real/imaginary and how ordered?

Best of luck - Mike


.



Relevant Pages

  • Re: IFFT to Wavetable ?
    ... I also wasn't converting from polar to rectangular. ... // now set the second half to the complex conjugates ... // then do the inverse FFT ... arrays then do an Inverse FFT to convert them to a wavetable. ...
    (comp.dsp)
  • Re: FFT mult
    ... Performs Fast Fourier Transform on the arrays Re and Im. ... Variable "Dir" determines whether a normal or an inversed FFT ... Shuffle2Arr ENDP ... _Fft ENDP ...
    (alt.lang.asm)
  • Re: FFTW question about larger output array than input
    ... If you use the arrays the same size, your source array only has half ... mixed radix FFT routine I had turned into a DLL a few years before ... // Destination size must be at least twice the the source size. ... N, int& NSPN, int& ISN); ...
    (comp.dsp)
  • Re: IFFT to Wavetable ?
    ... arrays then do an Inverse FFT to convert them to a wavetable. ... It's using an FFT library so I don't know what's going on. ... conjugate symmetry is implied. ... stick the real and imaginary parts into the real and imag arrays. ...
    (comp.dsp)
  • Re: IFFT to Wavetable ?
    ... arrays then do an Inverse FFT to convert them to a wavetable. ... It's using an FFT library so I don't know what's going on. ... A standard IFFT, when used to produce a purely real result ... vector requires redundant inputs. ...
    (comp.dsp)