Hey @rbrt and @valmir I've got a new aproach for midi clock syncing:
I used rbrts sync mechanisms but replaced the phasor with a counter that is being scaled to a range of 0-64:
Loop start is quantized to the next 24ppq loop stop according to rbrt's quantization mechanism.
I don't have all the extra stuff of @valmir's example, still didn't really get most of it, but it seems to work and doesn't produce a lot of clicks as of now.
Maybe I will also change to alway having a clock in my system. Could come handy for stuff like sequencing retrigger of a loop, or mlr like retriggering.
This is the patch:
O Clock Sync New.axp (13.2 KB)