preparing midi