\unfoldRepeats \removeWithTag ... yields wrong length
The problem exposed by this example is probably a defect in the infrastructure supporting \volta
and \unfolded
.
\version "2.22.0"
aNotes = \fixed c' \repeat volta 2 e1
bNotes = \fixed c' \repeat volta 2 c1
\context Staff {
%% \partCombine doesn't appear to contribute to the problem, but it
%% does make it more visible by logging "Moment is not increasing."
\partCombine {
%% Here, with 2.23, the UnfoldedRepeatedMusic has 'length = 2.
%% With 2.22, the 'length property is not set.
\displayMusic \removeWithTag #'foo \unfoldRepeats \aNotes
} {
%% Here, with 2.23, the UnfoldedRepeatedMusic has 'length = 1.
%% Does \removeWithTag do something that interferes with the
%% length of \unfoldRepeats? With 2.22, the 'length property is
%% not set.
\displayMusic \unfoldRepeats \removeWithTag #'foo \bNotes
}
}