|
Thread: Fft
-
Aug 3rd, 2001, 05:25 AM
#1
Thread Starter
Lively Member
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.
-
Aug 4th, 2001, 04:39 AM
#2
transcendental analytic
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.
-
Aug 4th, 2001, 06:08 AM
#3
Thread Starter
Lively Member
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??
-
Aug 4th, 2001, 06:16 AM
#4
transcendental analytic
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.
-
Aug 5th, 2001, 02:38 AM
#5
Thread Starter
Lively Member
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??
-
Aug 5th, 2001, 03:05 AM
#6
transcendental analytic
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.
-
Aug 5th, 2001, 03:09 AM
#7
Thread Starter
Lively Member
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...
-
Aug 5th, 2001, 04:07 AM
#8
transcendental analytic
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.
-
Aug 9th, 2001, 11:35 PM
#9
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|