A MIDI file is just like a musical score isn't it.
So this is already done, but we all know synths and midis sound bad at there best.
I think Bach studied mathmatics in relationship to music though he was a composer. But the purpose of a musical score is artistic interpretation, not recorded regurgitation so some AI that could interpret a score decently and play instruments would freak me out. lol