0
0

Hi all,

am I right in assuming the amplitudes returned by the getSpectrum() method take values between 0 and 1? I don’t remember where I’ve read this and wanted to make sure I got it right.

Thanks a lot!
–Cristina.

  • You must to post comments
0
0

From the System::getSpectrum docs (fmodex.chm):

spectrumarray
Address of a variable that receives the spectrum data. This is an array of floating point values. Data will range is 0.0 to 1.0. Decibels = 10.0f * (float)log10(val) * 2.0f; See remarks for what the data represents.

  • You must to post comments
0
0

๐Ÿ˜ณ ๐Ÿ˜€ So that’s where I’ve read about it!!

Sorry for wasting your time and thanks for answering, that was very kind given the circumstances ๐Ÿ˜€

  • You must to post comments
0
0

No problems :)

  • You must to post comments
0
0

and wave data is from -1 to 1

I while ago I found myself having to clamp the values; for some midi files, I would get values beyond this range

  • You must to post comments
0
0

Thanks for the wave data explanation, it’ll probably come in handy!

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.