move midi messages to a separate file