lilypond-user
[Top][All Lists]
Advanced

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

Re: Help with this lilypond error


From: Alexander Kobel
Subject: Re: Help with this lilypond error
Date: Fri, 17 Sep 2010 11:28:31 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100826 Lightning/1.0b1 Thunderbird/3.0.7

On 2010-09-17 10:17, Phil Holmes wrote:
----- Original Message ----- From: "peterwinson1" <address@hidden>
JMarc, thank you for the suggestion. Here is the result:  [...]
There is still a problem. The second bar which is the refrain, I want to
move to the bottom of everything. [...]

Peter,

I'm struggling to understand what you mean.   [...]

Hi, Peter,

I do, too, but there's another idea:

\score {
  {                       %% <-
    \new Staff {
      \key ... \time ...
      \new Voice { ... }
      \addlyrics { ... }
    }
    \new Staff {
      ...
    }
  }                       %% <-
}

Note that a score can only contain a single music expression, otherwise the syntax is wrong by definition. You can achieve this by putting braces around all the music which should be shown sequentially. The double angle brackets, however, denote parallel music, with all sections starting at the same point in time, which seems not to be what you want.

If you want to get that to the end on a line on its
own, why don't you just use a single staff and place the refrain music
at the end? You can start it on a new line with \break.

+1. The most easiest way usually is using this approach and, additionally, variables (look in the Learning Manual for details, especially the section "Final touches > Organizing pieces with variables"):

stanzaMusic = { ... } %% only notes
stanzaLyrics = \lyricmode { ... }
refMusic = { ... }
refLyrics = \lyricmode { ... }

\score {
  { %% might be needed or not
    \new Staff {
      \key ... \time ...
      \new Voice { \stanzaMusic \break \refMusic }
      \addlyrics { \stanzaLyrics \refLyrics }
    }
  }
}

or something similar.


HTH,
Alexander



reply via email to

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