Here's a handy formula to move a source forward on every Xth beat.
let( beatDivisor, 4, // move forward every Xth beat
signal, music.1.beat, // the input for the beat detection, like an audio band
xtopercent(floor(counter( 0,
(grid.lastx+1)*beatDivisor-1,
onbeat(trigger(signal,0,10,30,0.2)), // clean the signal with the trigger and detect beats
0,
grid.onactivated // reset the counter when the grid is activated
)/beatdivisor)))
Use this formula for the X slider of a source. Replace the music.1.beat by your signal.