Message: 3Date: Mon, 27 Feb 2017 04:27:19 -0700 (MST)From: Klaus Blum <address@hidden>To: address@hiddenSubject: Re: Vocal scores with extra stavesMessage-ID: <address@hidden>Content-Type: text/plain; charset=us-asciAndrew Bromage-2 wrotethe 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 ofhaving LilyPond do that automatically. Now you can control positions withalignAboveContext 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
|