I came across Alda. A music programming language for musicians created by Dave Yarwood that allows music programmers to write the code and compile the music just like other computer programs.
Alda can also be used to write music scores with notes and chords and even add mood to the music. Don’t take my word for it. Check out what Alda has to offer and get involved in the discussions.