pitchCheck

translated algorithm into java code.  still needs getPitch() method
using android sdk, may need to be adjusted for android as well, but the
basic format of the code is there.