updated for latest version of midi submodule