add midi event processing