fix #38731: Beams connected to irregular tuplets in a 4/4 time signature and on beats one and three are incorrect