Revert "Code neatening."

This reverts commit 454af4b07fb63379ad5e3dd04528c9b23c3bf3bc.
Revert "Weird midi bug fixes"

This reverts commit 4d7f771761be5f5866a90d803d6a603a137be362.