David Huron created Humdrum in the 1980s, and it has been used steadily for decades. Humdrum is a set of command-line tools that facilitates musical analysis, as well as a generalized syntax for representing sequential streams of data. Because it’s a set of command-line tools, it’s program-language agnostic. Many have employed Humdrum tools in larger scripts that use PERL, Ruby, Python, Bash, LISP, and C++.
Humdrum Labs ~ http://wiki.ccarh.org/wiki/Humdrum_Lab_1
Humdrum music encoding tutorial ~ https://doc.verovio.humdrum.org/humdrum/getting_started
Humdrum Resources ~ https://github.com/humdrum-tools