I’ll be posting some articles about the theory of Lerdahl very very soon. In anticipation of them (and to put something up so I can submit it to the Haskell Activity Report), here’s my implementation of a toy-model based roughly around his theory. It’s restricted to the process of chord generation.
Here‘s a simple playing by me of a chord-sequence that it produced. Here‘s a midi example that it produced by itself when I had it more developed.
There’s still a reasonable amount of work to be done on it, but it’s at a stage where it’s presentable.
Anyway, the current version of the haskell source code is here. Hopefully I’ll have more developed versions up in the future.