Added missing function. Fixed duplicated initialisation of midi interface.