Initial pitch implementation
Made basic controls work
Removed a bit of unnecessary code and added Peters magic threshold[tm]