[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug with stanza labels
From: |
Cameron Horsburgh |
Subject: |
Bug with stanza labels |
Date: |
Mon, 15 Jan 2007 14:47:56 +1100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hi folks,
If the first word of a stanza starts later than other verses, and that
stanza happens to begin on a different line of the staff, the stanza
label isn't printed. (See my example -- a picture's worth a thousand
words!)
I assume this is because the lyric context isn't instantiated until
the staff in which the words actually appear.
Of course, this is something of a corner case that can be worked
around with a suitable \noBreak. Apologies for the longer than usual
snippet.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Stanza labels aren't printed if the lyrics of a verse begin on a different
line.
\version "2.11.11"
lyricsVerseOne = \lyricmode{
\set stanza = "Verse 1."
My spir -- it cries for free -- dom }
lyricsVerseTwo = \lyricmode{
\set stanza = "Verse 2."
_ I was made for free -- dom }
lyricsVerseThree = \lyricmode{
\set stanza = "Verse 3."
My spir -- it cries for free -- dom }
melody = \relative c'{
R1*4 | r2 r4 r8 e8 |\break %If this \break is removed the stanza label appears
as expected.
e16 e8. e8. f16 g8 g4
}
\score{
<<
\context Voice = one {
\melody
}
\lyricsto "one" \new Lyrics
\lyricsVerseOne
\lyricsto "one" \new Lyrics \lyricsVerseTwo
\lyricsto "one" \new Lyrics \lyricsVerseThree
>>
}
--
=============================================
Cameron Horsburgh
=============================================
stanzaLabel.png
Description: PNG image
- Bug with stanza labels,
Cameron Horsburgh <=