Detect Tempo from Audio Input

I’d like to detect tempo (and set it) from an audio input of my card… imagine a microphone on de Drumbass that sends to audio card input the sound.
Tempo is detected and used to synch loop or delays,.

Any idea?

For that I would use Ableton Live, it has a device which detects the tempo coming from the kick (and snare) from the drummer and sets the tempo.
With LINK enabled you can tempo sync Ableton Live with Gig Performer.
Bildschirmfoto 2022-11-14 um 13.05.50