“ASIO Latency Compensation”?
Recording>MIDI Recording Specifics>Recording MIDI
If you perform a live recording on a VST instrument, you usually compensate the latency of the audio card by playing earlier.
In consequence, the timestamps are recorded too early.
If you activate > ASIO Latency Compensation > on the track list, all recorded events are moved by the current latency setting.
Preferences>Record>Record - MIDI>ASIO Latency Compensation Active by Default
MIDI Track Controls
Instrument Track Controls
Sampler Track Controls