Hello Fan,
On 02.03.2016 04:36, Fan Hongtao wrote:
I use the template
http://lilypond.org/doc/v2.18/Documentation/learning/piano-centered-lyrics
trying to engrave “Ten little Indian boys". The lyrics does't go to
the right place.
It looks like the lyrics can only match upper notes.
first a small remark: You should use proper lyric hyphens, as in the
following examples.
On your actual problem: there are two possibilities. Either you stick
with one Lyrics context and change its associatedVoice (as in ten1.ly),
or you add another Lyrics context (as in ten2.ly).
HTH, Simon
\version "2.18.2"
upper = \relative c'' {
\clef treble
\key c \major
\time 4/4
e4 g8 g e4 c |
r1 |
}
lower = \relative c {
\clef bass
\key c \major
\time 4/4
r1 |
d'4 d8 d d4 d8 d |
}
text = \lyricmode {
Three lit -- tle In -- \set associatedVoice = "lower" dians, |
Four lit -- tle, Five lit -- tle, | % How to show this?
}
\score {
\new GrandStaff <<
\new Staff = "upper" { \new Voice = "singer" \upper }
\new Staff = "lower" { \new Voice = "lower" \lower }
\new Lyrics \with { alignBelowContext = "upper" } \lyricsto "singer" \text
>>
\layout {
\context {
\GrandStaff
\accepts "Lyrics"
}
\context {
\Lyrics
\consists "Bar_engraver"
}
}
\midi { }
}\version "2.18.2"
upper = \relative c'' {
\clef treble
\key c \major
\time 4/4
e4 g8 g e4 c |
r1 |
}
lower = \relative c {
\clef bass
\key c \major
\time 4/4
r1 |
d'4 d8 d d4 d8 d |
}
text = \lyricmode {
Three lit -- tle In -- dians, |
}
textTwo = \lyricmode {
Four lit -- tle, Five lit -- tle, |
}
\score {
\new GrandStaff <<
\new Staff = "upper" { \new Voice = "singer" \upper }
\new Lyrics \lyricsto "singer" \text
\new Staff = "lower" { \new Voice = "lower" \lower }
\new Lyrics \lyricsto "lower" \textTwo
>>
\layout {
\context {
\GrandStaff
\accepts "Lyrics"
}
\context {
\Lyrics
\consists "Bar_engraver"
\override BarLine.transparent = ##t
}
}
\midi { }
}_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user