how do you detect the pitch of sound on iphone?

Hi

I’m trying to detect the pitch of sound on iphone. I found a link of pitchDetectionExample cord which zack put. (http://forum.openframeworks.cc/t/pitch-detection/3807/0) It works on Mac, but not on iphone… When I try to run it on iphone, I get these errors. What do I need to change? Please help! :cry:

“_new_aubio_pitchdetection”, referenced from:
aubioAnalyzer::setup() in aubioAnalyzer.o
“_aubio_pitchdetection”, referenced from:
aubioAnalyzer::processAudio(float*, int)in aubioAnalyzer.o
“_del_aubio_pitchdetection”, referenced from:
aubioAnalyzer::~aubioAnalyzer()in aubioAnalyzer.o
“_aubio_cleanup”, referenced from:
aubioAnalyzer::~aubioAnalyzer()in aubioAnalyzer.o
“_del_fvec”, referenced from:
aubioAnalyzer::~aubioAnalyzer()in aubioAnalyzer.o
“_new_fvec”, referenced from:
aubioAnalyzer::setup() in aubioAnalyzer.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

the issue is that the compiled lib of aubio will need to be recompiled for the arm architecture. I don’t know the specific configuration that you will need to use for compiling it correctly though. Perhaps zach could chime in with how he compiled it for mac?

Thank you, jonbro.
Well, I kind of found an alternative solution for now…
see this link
http://mobileorchard.com/tutorial-detec-…-o-the-mic/

Umm…found out that I can’t combine this micblow example with other OF apps…back to drawing board… Does anyone know how to detect the pitch of sound on iPhone?

the thing to do is use the audio input example, if you just want to clone the “user blowing into mic”. you should be able to tweak the code from the main OF example to run on iphone.

Thank you, jonbro! I’ll try that. :smiley: