A Python implementation of the first 4 working steps of "Yin Algorithm" as described by Alain de Cheveigné in the paper "YIN, a fundamental frequency estimator for speech and music".
click the file yin.ipynb to see a notebook with a simple test of the implementation for a music sample.