\staffHighlight with tempo indication and whole bar rest incorrect

Thomas via bug-lilypond <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
Hello,

"\staffHighlight" does not work properly if there is a tempo marking and
a whole bar rest in the first bar.

In this case, the marking only starts at the end of the tempo marking.

See attached file "staffHighlight.ly"

Regards Thomas
staffHighlight.ly (text/lilypond-source, 1.2 KB)
% The marking should start at "\staffHighlight".

% If there is a full-bar rest and a tempo marking in the first bar, 
% the marking starts at the end of the tempo marking and ends at 
% "\stopStaffHighlight". If there is a long tempo marking, the 
% marking starts at "\stopStaffHighlight" and ends at the end of the 
% tempo marking.

% If there is a full rest instead of a full-bar rest, or if there are 
% notes, the marking starts at "\staffHighlight". The same applies if 
% there is no tempo marking.



\version "2.24.3"

{
\staffHighlight yellow R1 \stopStaffHighlight
R1-\markup "without Tempomark"
}

{
\tempo "Tempomark"
\staffHighlight yellow R1 \stopStaffHighlight
R1
}

{
\tempo "Tempo"
\staffHighlight yellow R1 \stopStaffHighlight
R1
}

{
\tempo "Tpo."
\staffHighlight yellow R1 \stopStaffHighlight
R1
}

{
\tempo "Very long Tempomark"
\staffHighlight yellow R1 \stopStaffHighlight
R1 
}

{
\tempo "Tempo with r1 instead of R1"
\staffHighlight yellow r1 \stopStaffHighlight
R1
}

{
\tempo "Tempo with c1 instead of R1"
\staffHighlight yellow c'1 \stopStaffHighlight
R1
}

{
R1
\tempo "Tempo in 2nd bar"
\staffHighlight yellow R1 \stopStaffHighlight
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.