All Audio frequencies

早过忘川 提交于 2019-12-06 04:34:38

Basic steps are:

  • apply window function to block of samples (e.g. 1024 samples, Hanning window)
  • perform real-to-complex FFT on windowed samples
  • take magnitude of each FFT output bin (sqrt(re * re + im * im))
  • identify peaks in resulting power spectrum estimate
  • the bin index of each peak corresponds to the frequency of that component

I am not sure, but i think you can use FMOD library to do that. Specifically, Get spectrum function.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!