lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rehearsal marks, top-staff lyrics, and moved engravers


From: Xavier Scheuer
Subject: Re: rehearsal marks, top-staff lyrics, and moved engravers
Date: Wed, 1 Jun 2022 12:17:11 +0200

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

--
Xavier Scheuer <x.scheuer@gmail.com>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]