add general midi wrapper