To get into the functional programming side, I’m learning more and more about a functional music package in Haskell: harmtrace. It can parse a chord sequence (what I’m using it for), and do much more music analysis in a clean and functional way.
Thanks to the help of the authors of this package, I was finally able to run it using the binary. (Still not able to build it though, because of all the version issues with ghc..)
Some specifics are given here:
Here’s the screen shot of running it in terminal:
The output is a php syntax tree like this:
To visualise it, one can use this website:
And the visualisation looks like this:
In the future, more on the analysis of these trees…