i go through this process to record a guitar based song
1. make a quick rough recording with acoustic guitar with the feel I want
2. analyze in logic and get the tempo and perhaps tempo changes, and occasional important beats that may fall at some particular place
3. get a loop or beat that will go with it, and get it at the right tempo
4. make a good recording over the loop, discarding the original scratch recording.