lilypond-user
[Top][All Lists]
Advanced

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

Re: Vocal scores with extra staves


From: Joseph Austin
Subject: Re: Vocal scores with extra staves
Date: Mon, 27 Feb 2017 20:25:58 -0500


On Feb 27, 2017, at 7:17 AM, address@hidden wrote:

Message: 3
Date: Mon, 27 Feb 2017 04:27:19 -0700 (MST)
From: Klaus Blum <address@hidden>
To: address@hidden
Subject: Re: Vocal scores with extra staves
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-asci

Andrew Bromage-2 wrote
the new staff isn't where I expect it to be; I'd like it to 
be part of the ChoirStaff.

In such cases, it's better to explicitely start a new staff instead of
having LilyPond do that automatically. Now you can control positions with
alignAboveContext or alignBelowContext. 

% ---------------------------------------------------------------
\version "2.18.2"

timeline = {
 \time 4/4
 { s1*2 } \bar "||"
 { s1*2 } \bar "|."
}

choirVerseI = { \relative c'' { c4 c c c c c c c } }
sopranoVerseII = { \relative c'' { c4 c c c c c c c } }
altoVerseII = { \relative e' { e4 e e e e e e e } }
tenorVerseII = { \relative g { g4 g g g g g g g } }
bassVerseII = { \relative c { c4 c c c c c c c } }
pianoRH = { \relative c' { <e c'>1 <e c'> <e c'> <e c'> } }
pianoLH = { \relative c { <c g'>1 <c g'> <c g'> <c g'> } }
lyricsVerseI = \lyricmode { la la la la la la la la }
lyricsVerseII = \lyricmode { lu lu lu lu lu lu lu lu }

\book {
 <<
   \new ChoirStaff {
     \new Staff {
       <<
         \timeline
         \clef treble \key c \major
         \new Voice = "sopranoChorus" {
           \choirVerseI
           <<
             \context Voice = "sopranoChorus" { \voiceOne \sopranoVerseII }
             \new Voice = "altoChorus" { \voiceTwo \altoVerseII }

             \new Staff \with {alignBelowContext = #"chorusLyrics"} {
               \clef bass \key c \major
               <<
                 \new Voice = "tenorChorus" { \voiceOne \tenorVerseII }
                 \new Voice = "bassChorus" { \voiceTwo \bassVerseII }

             }

         }

     }
   }

   \new Lyrics = "chorusLyrics"

   \context Lyrics = "chorusLyrics" {
     \lyricsto "sopranoChorus" { \lyricsVerseI \lyricsVerseII }
   }

   \new PianoStaff <<
     \new Staff {
       \clef treble \key c \major <<
         \timeline \new Voice
         { \pianoRH }

     }
     \new Staff {
       \clef bass \key c \major <<
         \timeline \new Voice {
           \pianoLH
         }

     }


}

I studied this example because I've been trying to learn to set choral music myself.
When I run this example, I get: error: syntax error, unexpected '}'"    on lines 34, 57, 64.
Am I missing something?
Also, there appear to be unmatched << .  Is closing >> implied, or is this just a short-cut  example?

Joe Austin



reply via email to

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