Metronome issue

Hi,
I’m having a problem with the click generation.
What happens is that the emphasis of the first beat of a bar is generated incorrectly, especially for bpm greater than 120.
For example at 140 bpm I hear the emphasis repeated on beat 1 and 2 of some bars while on other bars the emphasis is not generated at all.
I generated the click waveform to make the idea clearer:

at 170 bpm it looks like this (WRONG) :

While from 120 down (CORRECT) :

is there someone with the same issue?
Thanks for your help.

First thing I need to ask is if you’re using the tip of the develop branch?

I’m frozen at the 2.1.0 version.
I’m using the repo at this point 682bee39e8c9290758fde396f12065cb1aca4437 on Feb 2024

I’m pretty sure this is something we fixed a few months ago.