Strange sample rate issue

The problem here is that the audio is time based, but the midi is tempo based.
You could rename your topic to attract other users to your specific problem.

Maybe this could help you.