On 2 Apr 2015, at 14:30, Kevin Callahan <[email protected]>:

> 
> I’m writing an iOS app in Swift (will also write a Mac version later) and 
> would like to add pitch detection. Is there an open-source project that does 
> frequency pitch detection? Would I use AVAudioSession to capture the audio, 
> then drop down into CoreAudio to do the pitch detection?
> 
> In my initial research, I’ve learned there are many algorithms and ways to go 
> about doing pitch detection - each having strengths and weaknesses. 
> 
> Can someone please point me in the best direction to get started?

The best direction to go always depends on where you want to get to:-)

The pitch detection part of the vocoder module in my synth performs an FFT on 
the input, then searches for harmonically related peaks, and finds the 
"average" highest common factor between them.  That's close to the fundamental.

Ten years ago, this ran unobtrusively in real-time on an iMac, so it ought to 
run on a modern phone.  (And for a vocoder it has the bonus that you're already 
more than halfway to voiced/unvoiced detection:-))

If you're wanting it for something else, the output from this may or may not be 
accurate enough, depending on how much effort you want to put into correct peak 
detection, and on the quality of the input source.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish                     18 Durham Close, Biggleswade, Beds SG18 8HZ
[email protected]        Tel: +44 1767 601361     Mob: +44 7952 854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to