lilypond-user
[Top][All Lists]
Advanced

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

Re: Piano Staff with Autochange and lyrics between staves


From: Valentin Villenave
Subject: Re: Piano Staff with Autochange and lyrics between staves
Date: Sun, 1 Jul 2007 18:56:23 +0200

Hello Carl,

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


2007/6/5, Carl Sorensen <address@hidden>:
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" }
      }
}




reply via email to

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