Pitch detection and dsp

None of the commands in FMOD are C++ only, they all have C equivalents. Compare fmod.h vs fmod.hpp

The FMOD5 DSP method is probably easier, as all you have to do is

  1. create the FFT dsp
  2. use addDSP to add it to a channel or bus (channelgroup).
  3. use DSP::getParameter with FMOD_DSP_FFT_DOMINANT_FREQ …

… and it just tells you which is the dominant frequency with a single floating point value, you dont need to calculate it yourself.

1 Like