How to sync Reaper with midi hardware
Adjust the offset midi clock (start event) if necessary:
Be sure to reset the blue cursor at the very beginning and try to have the lowest audio latency possible
For example, this is bad: