How Do You Guys Align a Microphone Signal to a DI one?

We’re talking different issues here. In short, I have two Bass tracks (One with the recorded signal of a bass cabinet, using a microphone, and the other is a Direct Inject or D.I. signal). Both tracks capture the same exact take but, as mentioned by Strophoid above, the mic signal will be recorded later than the direct signal due to the distance of the mic from the cabinet. Due to this delay, phase issues arise which become detrimental to the low end (especially in this case since I’m recording Bass), so I need to align these track in order to avoid that and get a punchier Bass sound.

The way I’m achieving this is by recording a high transient Bass sound, such as that from slapping the strings, and using that in order to adjust the latency of the two tracks so that they are phase coherent. That’s basically what it boils down to, and I would like to have a better way to achieve this as mentioned earlier. Hope this clears things up.