It's also worth mentioning that adding usleep(10) at the end of sendMidiShortMsg makes the problem go away for me.
It's also worth mentioning that adding usleep(10) at the end of sendMidiShortMsg makes the problem go away for me.