Further refactoring of MidiPad