snap to

There’s actually a plug-in available that creates labels for bars and beats…
This post: Beat Per Minute labels