Hello Carl,

it seems nobody answered you a few weeks ago...


2007/6/5, Carl Sorensen <[EMAIL PROTECTED]>:
I'd like to set some single-note beginning piano music for my daughter, and want
to make a piano staff with lyrics between the two staves.

This is really easy; the only thing you needed to remember is that
lyrics can only be applied to a Voice context.
Besides, you had many useless things in your snippet, but I guess you
will add some notes as you daughter progress :)

Here is your 'favorite things' snippet, ready to be played.

Regards,
Valentin

verse= \lyricmode {
      Rain - drops on ros - es and whisk - ers on kit-tens

}

melody = \relative c'{
      e4 b' b | fis e e | b e e | fis e r
}

staffPiano = \new PianoStaff {
              <<
              \context Staff = "up" {
                  \new Voice = "melPia" {
              \time 3/4
              \key g \major
              \autochange  \melody }
%% This is just here in case you want to add some chords etc.
               %     \new Voice  {   \clef treble
               %       \key c \major
               %       \transpose g c {\melody}
               %       \relative c {
               %       s2.*4 }
               }
              \new Lyrics \lyricsto "melPia" {\verse}

%% This is just in case you'd like to add a few bass notes etc.
               %  \context Staff = "down" {
               %       \clef bass
               %       \key c \major
               %       \relative c \AncientRemoveEmptyStaffContext
               %               s2.*4
               %         }
      >>
}

\score {
              \staffPiano
      \layout  {
        \context { \PianoStaff \accepts "Lyrics" }
        \context { \Lyrics \consists "Bar_engraver" }
      }
}


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to