lilypond-user
[Top][All Lists]
Advanced

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

Re: Set Stanza for every staff


From: Malte Meyn
Subject: Re: Set Stanza for every staff
Date: Wed, 29 Jun 2016 00:21:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0



Am 29.06.2016 um 00:08 schrieb Thomas Morley:
2016-06-28 23:40 GMT+02:00 Br. Gabriel-Marie | SSPX <address@hidden>:
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 }
>>




reply via email to

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