⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fftlib.bas

📁 快速傅立叶变换FFT的动态链接库DLL
💻 BAS
字号:
Attribute VB_Name = "FFTLib"
'---------------------------------------------------------------------
'Declares for use with FFT.DLL -- Murphy McCauley 08/01/99
'---------------------------------------------------------------------

'You'll notice that the arrays (RealIn, ImagIn, RealOut, ImagOut) are
'represented as a single variable, not an array.  Pass the FIRST
'ELEMENT of the array and things work just right.
'For example...
'Dim RealIn(1 to 128) As Single, ImagIn(1 to 128) As Single
'Dim RealOut(1 to 128) As Single, ImagOut(1 to 128) As Single
' ...
'Call FFTSingle(128, False, RealIn(1), ImagIn(1), RealOut(1), ImagOut(1))

'Also, I aliased the functions so you can use the pretty VB-style
'names FFTDouble, FFTSingle, and IndexToFrequency.

 Declare Sub FFTDouble Lib "FFT.dll" Alias "fft_double" _
  (ByVal NumSamples As Long, ByVal InverseTransform As Boolean, _
  RealIn As Double, _
  ImagIn As Double, _
  RealOut As Double, _
  ImagOut As Double)
 
 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)
 
 Declare Function IndexToFrequency Lib "FFT.dll" _
  Alias "Index_to_frequency" _
  (ByVal NumSamples As Long, _
  ByVal Index As Long) As Double

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -