Refactor some MIDI stuff, make keyboad output CC buttons