Thanks for sharing!
If you’re getting into this (and once you start thinking about musical theory from a mathematical standpoint, it gets really interesting and much easier to grasp imo ;-) I hope you already saw Andrew Sorensen live music coding talks. He did quite a few (Oscon, TEd talk, Codemania, Compose/Melbourne, several Goto talks) fF not, then you’ll probably love them! If you’re more interested in the theory and the code than just in the end result, then I’d recommend this talk to start (the Melbourne one is lower level, and I’ll let you explore his awesome work if you like this introduction ;-)
Hope you’ll like it if you never saw it before!