cleanup stuff and actually send desired midi message