Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting frequency of sound on iPhone

I'm looking 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

like image 681
cschwarz Avatar asked Mar 30 '10 19:03

cschwarz


2 Answers

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..

like image 168
Dilip Rajkumar Avatar answered Sep 23 '22 15:09

Dilip Rajkumar


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).

like image 31
Paul R Avatar answered Sep 23 '22 15:09

Paul R