midi output works now, turns out that the USART_SendByte was non-blocking (of course) and this fucked up the messages, I guess