Debugging midi code