Am 29.06.2016 um 00:08 schrieb Thomas Morley:
2016-06-28 23:40 GMT+02:00 Br. Gabriel-Marie | SSPX <brgabr...@sspx.org>:
In my music I have been using
\set stanza = "1. "
to get line numbering for the lyrics.  But this only numbers the beginning
of the lyric's line.
I can manually insert that to get the numbering to appear within the lyric
line, but what I need is for it to appear at the start of each lyric as it
dynamically shifts.

Manually could look like this:
\set stanza = "1. " Bla bla bla \set stanza = "1. " ha ha ha
to get
1. Bla Bla Bla
2. ha ha ha

however, when the music spreads itself across the bars it might break
differently, creating this:
1. Bla Bla Bla 2. ha
ha ha

So is there a way to make it auto-number the lyric lines?


Use instrumentName and shortInstrumentName?

<<
\new Staff { \repeat unfold 80 c''4 }
\new Lyrics
   \with { instrumentName = "1." shortInstrumentName = "1." }
   \lyricmode { \repeat unfold 80 foo4 }
\new Lyrics
   \with { instrumentName = "2." shortInstrumentName = "2." }
   \lyricmode { \repeat unfold 80 bar }


HTH,
   Harm

For better placement you could override X-offset of the InstrumentName. I also changed the font to matching the stanza default:

\version "2.19.44"

\layout {
  \context {
    \Lyrics
    \override InstrumentName.X-offset = 2
    \override InstrumentName.font-size = 0
    \override InstrumentName.font-series = #'bold
  }
}

<<
  \new Staff { \repeat unfold 80 c''4 }
  \new Lyrics \with {
    shortInstrumentName = "1."
    stanza = "1."
  } \lyricmode { \repeat unfold 80 foo4 }
  \new Lyrics \with {
    shortInstrumentName = "2."
    stanza = "2."
  } \lyricmode { \repeat unfold 80 bar }
>>


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to