pitch_detection every thing you need is in main.c with clear comments you can use the main.c file in your project without any problem