Upgraded the midi library to the latest version.