lilypond-user
[Top][All Lists]
Advanced

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

Centering lyrics in piano music for children


From: Michael Rivers
Subject: Centering lyrics in piano music for children
Date: Sun, 30 Sep 2012 19:29:17 -0700 (PDT)

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.



reply via email to

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