midi: prepare generalized 'm'.