If there are significant variations in the tempo for the original tracks, you’re not likely to get them locked to a single fixed tempo very easily, and anything you did that might seem to try to do that quickly would likely result in the tempo being off, possibly significantly, in at least some parts of the song.
The way I approach this sort of thing – and I should note that I’m usually doing it with MIDI tracks, not audio, for example because I want to start sketching out a song by just playing a piano accompaniment, and I don’t want to do that with a metronome or click track is because part of the reason I’m doing this is to see where the tempo goes naturally when I play the song (I’m usually singing at the same time, too, though I don’t record that) – is as follows:
First, once the track is recorded, make sure and set it in time mode, not musical mode. (At least for MIDI tracks, and with whatever default preferences I have set in Cubase, MIDI tracks always default to musical mode.)
Second, use the Time Warp tool to align measures (and/or finer gradations) to the actual playing. If the tempo doesn’t vary too widely, it will help to set a tempo that is somewhere in the ballpark of what was played as a starting point since that may get the measure boundaries to at least be closer to where they ultimately need to be. If the tempo is fairly steady, it may be good enough to do this for some large number of bars – maybe even just the start of the song (not including pickups that come before the first downbeat) and the end of the song. However, most of my stuff varies quite a bit in this scenario, so I’m usually doing it every 2-8 measures as a starting point, except for areas with speedups or slowdowns, where I’ll probably at least get it down to one bar, and maybe even finer gradations if the change in speed is gradual.
While doing the above, I’m generally playing the track back with the click active so I can hear if things are mapping out pretty reasonably. At this point, though – “Third” – I’ll go through the entire song and refine any areas where things get off to any noticeable degree.
Fourth, at least after saving and backing up the results to this point, if I don’t want to just go with the tempo map I’ve just created (which is pretty much always the case – I want to at least smooth out the variations, though not necessarily to create a fixed tempo), I set the tracks back to musical mode, then edit the tempo track directly to set specific values and delete entries between desired tempo changes. I may do some math before doing this, for example tofigure out what the average tempo was. (If you did the whole song in the first step, you’ll likely get that from the tempo map itself at that stage.)
In my scenario, I’m not going to use the original scratch track. I’m just using it to map out the song structure and establish a tempo map for recording the real tracks. However, as long as you’re not making to severe of changes that would lead to audio artifacts, and you’ve made the tempo map conform to the actual playing sufficiently tightly, I don’t see why this couldn’t also work for your scenario.
One additional thought for your scenario, and this comes into areas I have not tried. If you’re extracting drum tracks as audio, could you use audio-to-MIDI conversion – maybe just of the kick or kick and snare, to use for building the tempo map? Perhaps that might give better odds of using any automated tools for this sort of thing than working with more complex portions of the audio? (I’ve never had any luck with automatic tempo detection for my scenarios, but, if I’m doing it with audio, I’m probably doing it with a full mix to use for practicing or something, or maybe as a guide if I’m recording a song based on a demo that I only have as audio.)