Most beginning children's piano music uses a format with a single-line melody
broken between the treble and bass clefs and lyrics written in between. I'm
assuming LilyPond doesn't have a way to automatically attach some lyrics to
the treble and some to the bass as needed, so I'm trying to do this
manually. My two problems are that the bass lyrics are not centered because
I don't really understand how staff-centered lyrics work, and that sometimes
a hyphenated word needs to be split between two notes, one in the treble and
one in the bass.

right = \relative c' {
  c2 c | s1 | c2 e4 f | g1 |  
}

left = \relative c' {
  \clef bass
  s1 | g2 g | s1 | s1 |  
}

righttext = \lyricmode {
  Play pi -- | all  day _ | long.
}

lefttext = \lyricmode {
  a -- no
}

\score {
  \new PianoStaff <<
    \new Staff = "right" { \new Voice = "rightsinger" \right }
    \new Lyrics \lyricsto "rightsinger" \righttext
    \new Staff = "left" { \new Voice = "leftsinger" \left }
    \new Lyrics \with { alignAboveContext = "left" } \lyricsto "leftsinger"
\lefttext
    
  >>
  \layout {
    \context {
      \GrandStaff
      \accepts "Lyrics"
    }
    \context {
      \Lyrics
      \consists "Bar_engraver"
    }
  }
}



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Centering-lyrics-in-piano-music-for-children-tp133900.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to