I’m curious if it would it be better to use the new clock system in my code where I have multiple sequences running off of a master metro at different clock divisions.
Typically I’ve been following this pattern in my main metro callback:
for i=1,#sequencers do
sequencers[i].div_count = sequencers[i].div_count % clock_division + 1
if sequencers[i].div_count == 1 then
-- do sequencer stuff
end
end
so if clock_division is 4, the sequencer will only play every 4 iterations when the modulo calculation equals 1.
My understanding is with the new system I could instead define multiple coroutines for each sequence, where each one syncs to master tempo at a different division. Is this more stable and/or performant? Are there benefits for me to refactor this to use coroutines other than it maybe looking cleaner and being more readable?