A paper about this work is available: Zheng Jiang and Roger B. Dannenberg, “Melody Identification in Standard MIDI Files,” in Proceedings of the 16th Sound & Music Computing Conference (SMC2019), Malaga, 2019, pp. 65-71.
Here is a video of a GUI application built around the analysis algorithms.
This work is licensed under CC BY 4.0