On Wed, 1 Jun 2022 at 11:32, Werner LEMBERG <
wl@gnu.org> wrote:
>
>
> Dear LilyPonders,
>
>
> the snippet below demonstrates that top-staff lyrics are incorrectly
> positioned above rehearsal marks if the engraver for the latter is
> moved to another context (I need that in a full score with rehearsal
> marks printed simultaneously at three different vertical positions).
>
> What am I missing?
Hi Werner,
I have always considered Lyrics contexts to be on the same level as Staff (so I never put a Lyrics context inside a Staff context, but always above or below).
So I would have thought that adding the Mark_engraver to a StaffGroup-like context (like ChoirStaff) containing both the Lyrics and the staff (see below) would solve the problem. But it doesn't. I would tend to consider this a bug.
\score {
<<
\new ChoirStaff = "choirstaff" \with {
\consists Mark_engraver
} {
<<
\new Staff = "staff" {
<<
\new Voice = "music" {
<<
\top
\music
>>
}
\new NullVoice = "aligner" {
\music
}
>>
}
\new Lyrics = "lyrics" \with {
alignAboveContext = "staff"
} \lyricsto "aligner" {
\text
}
>>
}
>>
\layout {
\context {
\Score
\remove Mark_engraver
}
}
}
Cheers,
Xavier
--