I presume people have seen the fantastic Cycling74 tutorial in 6 parts on the FFT, starting from scratch, building external along the way.
I’ve just come across the amazing episode 7 where they explain phase deviation in the most intuitive way I’ve found so far, and use it to make a crude pitch tracker.