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 ~ wiki.ccarh.org/wiki/Humdrum_Lab_1
Humdrum music encoding tutorial ~ doc.verovio.humdrum.org/humdrum/getting_started
Humdrum Resources ~ github.com/humdrum-tools