Hey! I think I may have found a possible bug.So, I have been playing around with the use of instrumentName and shortInstrumentName for uses of numbering lyrics.
Now, when have a key signature that doesn't take up much horizontal space on the bar then it is possible that the numbers may overlap some of the lyric text.
So you can use \override Lyrics.LyricText #'extra-offset = #'(2 . 0)to move the lyric text around so that it is out of the way of the numbers.
However, this causes a few problems:1. Since it is an offset it does not affect how the text lines up with the music notes - but I think this is correct procedure for an offset. 2. And this is the bug (I think) - hyphenated lyrics move, but their -- hyphens do not move with them. So the offset causes the lyric words to overlap their hyphens.
You can see the overlap here in wo -- rds, wi -- th, and stanz -- as
I have attached a minimal example.All of that having been said, is there a way to move the text along with the notes? In other words, can I push the music with its lyrics to the right a little bit somehow to get space?
(I'm still playing with Harm's stanza trick; but I like the instrumentName method better because it keeps the numbers in the same place on every bar and doesn't shift position on account of word lengths)
\header {
title = "Instrument Name with Offset Test"
}
verses = \new Voice = "verses" \relative c'' {
\time 4/4
\key c \major
a4 b4 c4 d4 | e4 d4 f2 \bar "||"
}
wordsOne = \new Lyrics \with{ instrumentName= "1" shortInstrumentName= "1"} \lyricsto "verses" {
Here are some wo -- rds to sing
}
wordsTwo = \new Lyrics \with{ instrumentName= "2" shortInstrumentName= "2"} \lyricsto "verses" {
And line up wi -- th them -- selves
}
wordsThree = \new Lyrics \with{ instrumentName= "3" shortInstrumentName= "3"} \lyricsto "verses" {
See the stanz -- as line up in place
}
\score {
<<
\new Staff{ \verses }
\wordsOne
\wordsTwo
\wordsThree
>>
\layout {
\override Lyrics.LyricText #'extra-offset = #'(2 . 0) % **** allows the Lyric text's starting point to be shifted left or right
}
}
offset test.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
