lilypond-user
[Top][All Lists]
Advanced

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

Re: song with multi-voice ending


From: Mats Bengtsson
Subject: Re: song with multi-voice ending
Date: Tue, 06 Nov 2007 09:27:48 +0100
User-agent: Thunderbird 2.0.0.5 (X11/20070716)



fiëé visuëlle wrote:

Problem: The lyrics of ending two and three (textSchlussZwei/Drei) are below voice "eins" instead of their own voices. (alignBelowContext doesn't seem to to anything, gives also no error, though.)

That's since the Staff contexts they refer to don't exist when the Lyrics
contexts are created at the beginning of the piece. The solution is to
create these at the same time as the extra Staff contexts. Here's a complete
example.

\version "2.10.0"
global = {}
akkorde = \relative c'{c1 d e f }
akkordeSchluss = \relative c'{c1 d e c }
hauptstimme = \relative c'{c2 e d f e g f d }
schlussEins = \relative c'{c2 e d f e d c1 }
schlussZwei = \relative c'{c2 e d f e d c1 }
schlussDrei = \relative c'{c2 e d f e d c1 }

text = \lyricmode { A a a a a a a a }
textSchlussEins = \lyricmode { B b b b b b b b }
textSchlussZwei = \lyricmode { C c c c c c c c }
textSchlussDrei = \lyricmode { D d d d d d d d }

\score {
   <<
       \new ChordNames {
           \germanChords
           \set chordChanges = ##t
           \akkorde \akkordeSchluss
       }
       \new Staff = Oben <<
           \global % clef, key, time
           \new Voice = "eins" {
               \hauptstimme % unison main song
               << % choir ending
                   \schlussEins
                   \new Staff = mitte \new Voice = "zwei" \schlussZwei
\new Staff = unten \new Voice = "drei" \schlussDrei \new Lyrics \with { alignBelowContext=mitte } \lyricsto "zwei" \textSchlussZwei \new Lyrics \with { alignBelowContext=unten } \lyricsto "drei" \textSchlussDrei
                           >>
                       }
       >>
       \new Lyrics \lyricsto "eins" { \text \textSchlussEins }
    >>
}


  /Mats




reply via email to

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