Play midi alongside animation
I don't know if you can do that, but you shouldn't need to. Try simply exporting the MIDI to a sound file, and using the Video Sequence Editor (I think) to align it with your animation.