Frequency calculation using an example of apple aurootide

I am working on a program that should capture the frequency of sound from a guitar. I modified the aurioTouch example to output the frequency using the highest frequency. It works fine for high notes, but is very inaccurate in the bottom lines. I believe this is due to overtones. I explored ways to solve this problem, such as Cepstrum Analysis, but I am lost in how to implement this in the sample code, as it is unclear and difficult to follow without comment. Any help would be greatly appreciated, thanks!

+4
source share
1 answer

As you find, the musical pitch is not the same as the peak frequency.

But trying to research algorithms while trying to work with real-time audio is not easy.

I suggest you share the problems. Record some music sounds (guitar folds, etc.) on your Mac to raw audio files. Try the step estimation algorithms of your choice on these recorded sample sets. Then, after you get this work, figure out how to integrate your code into iOS audio and speed up (for FFT) frameworks.

+4
source

Source: https://habr.com/ru/post/1337858/


All Articles