Formula to move a source forward every Xth beat

12 views
Skip to first unread message

Mathieu

unread,
Oct 5, 2025, 6:48:57 PM (4 days ago) Oct 5
to Lightjams
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.
Reply all
Reply to author
Forward
0 new messages