Tempo, half-time and double-time
Spectral flux tracks changes in frequency energy that often mark note or drum onsets. Autocorrelation looks for repeating intervals corresponding to 55–200 BPM. In trap, dubstep or ballads, the drums and faster subdivisions may support different pulses. Try 0.5× or 2× and tap along with the beat you would use to count bars.