Switched to using StreamPlayer to output live midi.
Fixed all problems, I am God!