Results 1 to 9 of 9

Thread: Fft

  1. #1

    Thread Starter
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106

    Angry Fft

    Hello. I've downloaded a DLL for Fourier Transformations.

    Declare Sub FFTSingle Lib "FFT.dll" Alias "fft_float" _
    (ByVal NumSamples As Long, ByVal InverseTransform As Boolean, _
    RealIn As Single, _
    ImagIn As Single, _
    RealOut As Single, _
    ImagOut As Single)



    RealIn and ImagIn are the first elements of an array containing the information of the wave.

    But what are those inputs Real and Imag for. I thought I do only ne one input array.. that contains the wave. why two arrays??

    Thanks for any help.
    mojo

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I'm not sure but theres a hint it's complex values with real and imaginary part
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106

    But what for?

    But what for are 2 inputs if I only need 1 array with the wave I want to apply the FFT on??
    mojo

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    eh, a complex value is a value. I think you pass one element at a time, but not sure, where did you find the library?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106
    If found it on http://www.fullspectrum.com/deeth/.
    The problem is that I have 2 input arrays and 2 output arrays... but isn't it logically that I should only need 1 input and 1 output array for the FFT??
    mojo

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    pass an array of 0'es as imaginary input and output, since you probably only work with real values.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106
    I have already tried that.. but then I get very different values at the Real and Imag output... When I put the same values in the Real and Imag input.. then I will get only one output... but this output has nothing to to with the frequences the wave contains.. I mean I won't get the Frequency Spectrum of the input...
    mojo

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Hmm, I can't help you sorry.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  9. #9
    Member
    Join Date
    Apr 2001
    Location
    Emden, Germany
    Posts
    63
    ok, here are some links that will help.


    http://www.ulib.org/webRoot/Books/Numerical_Recipes/

    there you can download very in-dept explanation of FFT. The books you can download there are written for fortran or c, but the explanation is the same, if you use VB.

    possibly easier to understand is:
    www.dspguide.com

    sorry, never used FFT myself. last time i did frequency analysis i just used normal fourier-transform.
    WIN 2000 Prof. / WIN 98 / WIN 95, IE6.0, Mathematica 4.0
    Visual Studio Enterprise 6.0 sp5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width