开发者

Getting frequency of sound on iPhone

I'm 开发者_StackOverflowlooking for an Objective-C class that allows me to get the frequency of a live input sound on the iPhone. Didn't find anything useful.

Before you ask: the frequency will not change for 0.1 seconds.

Thanks for answers, Christian


Following is the library used to fid the frequency..

A lib to find the frequency https://github.com/jkells/sc_listener

A example using the above library https://github.com/jkells/sc_listener_sample

Hope it helps some once..


Do you mean frequency or pitch ? If it's just a pure sinusoid and you want the frequency then you can just measure the time between zero crossings (crude) or use an FFT to get the power spectrum and then find the peak (more complex, more reliable).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜