0
0

Hi guys,
please help me , i’m tryng to retrive the spectrum from visual basic
.
Everything is ok when i start fft engine but when i try to retrive spectrum the ide crashes.
How can i find a workaround?

please help

byez
Lorenzo
👿

  • You must to post comments
0
0

It’s actually pretty easy to get the data, all you have to do is create an array of 512 floats (Eg. Dim Spectrum(0 to 512) as Single). This will give you the entire spectrum range of 512 bars, if you want to narrow it down to something smaller, like 128 bars, you can do that. After the array is made, just use Getspectrum (which is in the VB Fmod Module) as so, Call Getspectrum(Spectrum), and this will fill your array with the spectrum data, which you can plot to a picturebox. It’s really the plotting of the spectrum that takes a while to do.

  • You must to post comments
0
0

Soon as I call Call GetSpectrum(Spectrum) my vb6 crashes. I’m I missing something? Thanks

  • You must to post comments
0
0

This is the only info I can get on the error.

AppName: vb6.exe AppVer: 6.0.97.82 ModName: ntdll.dll
ModVer: 5.1.2600.2180 Offset: 0000316c

  • You must to post comments
0
0

Call GetSpectrum(Spectrum(0)) should work?

  • You must to post comments
0
0

Thanks.
Got it working. :)

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.