ePub 2 didn't support audio - some devices did, but that isn't part of the spec.
ePub 3 does support audio formats of mp3 and AAC LC/mp4
I'd recommend converting the midi files to mp3 for better compatibility. You'll also hear people recommending developing your own app... they tend not to like ePub3, or think it isn't supported by a large enough number of devices.