Please consider the below example. Please see my previous email here
<https://lists.gnu.org/archive/html/lilypond-user/2026-03/msg00167.html>
for context.

Score B. is what I want: shortVocalName grobs moved closer to the lyrics,
without any changes to the incipit.

I am already getting the output that I need, but I am curious:


   - Why does specifying a context for InstrumentName.X-offset cause
   problems?
   - Or, put another way, why do I get what I need only if I don’t specify
   a context for InstrumentName.X-offset?

IIUC, an incipit is part of an instrumentName grob.

Gabriel

%%%  SNIPPET BEGINS

\version "2.25.80"

incipitMusic = \new Staff {
  \key f \major
  f'1
}

melody = {
  \key g \major
  \repeat unfold 40 { g'2 }
}

words = \lyricmode {
  \set stanza = " One "
  \set shortVocalName = " 1 "
  \repeat unfold 40 test
}

scoreContent = {
  <<
    \new Voice = Soprano {
      \set Staff.instrumentName = ""
      \incipit #1 \incipitMusic
      \melody
    }
    \new Lyrics \lyricsto Soprano \words
  >>
}


*\markup { A. Score with default layout: }*\score {
  \scoreContent
}


*\markup { B. Score with shortVocalName grobs closer to lyrics: }*\score {
  \scoreContent
  \layout {
    \override InstrumentName.X-offset = #4
  }
}


*\markup { C. Specify Score context in the override: }*\score {
  \scoreContent
  \layout {
    \override Score.InstrumentName.X-offset = #4
  }
}


*\markup { D. Specify Staff context in the override: }*\score {
  \scoreContent
  \layout {
    \override Staff.InstrumentName.X-offset = #4
  }
}

%%%  SNIPPET ENDS


---------- Forwarded message ---------
From: Gabriel Ellsworth
Date: Fri, 27 Mar 2026
Subject: Re: Stanza Divider Lines
To: Lilypond-User Mailing List <[email protected]>

I found http://www.geoffhorton.com/lilypond.html#versenumbers, which
indicates that if I want stanza numbers in front of every line, I should
set vocalName and shortVocalName for each stanza.

My updated MWE is below, inspired by Geoff’s approach but with the
difference that I do use \set stanza.

Reply via email to