It's easy to see how a programming language can be a good fit for notating certain kinds of music and allowing playback of it. Seems to me like the challenge is to go beyond lining things up neatly to a grid and introducing any kind of "looseness" to the music.
Edit: Then again, people do great stuff with trackers, so I'm sure a programming language can be a great fit for some kinds of music.