Use MIDI library instead of own code