Tested pitch detection with real sample, seems to be mostly successful, still want to test more.
Currently thresholds for the onset detection are still hard coded, in the future it might make sense to break these out.
Also need to fix it up so that it can be run more than once without having to restart the whole thing