Your Midi settings for getting on the beat?

Just curious what settings you guys have in order to catch any notes played just before the recording starts. Sometimes I miss a note by a hair and it does not get recorded. Thank you!

Start recording a bar or two before you intend to play the first note.

Exactly the same here. Two bars ahead.