Borrowed some FFT and Pitchdetection code from https://code.google.com/p/android-guitar-tuner/source/browse/trunk/src/com/example/GuitarTuner/