Am 01.05.2016 um 17:29 schrieb Henry Law:
But on the second appearance of "<<" Lily barfs with "syntax error,
unexpected <<".
Every \score can contain only one music expression but you did something
like
%%%%%
\version "2.18.2"
\score {
<<
\new Staff a
\new Staff b
>>
<<
f
g
>>
}
%%%%%
This is two music expressions, each in << >> so the second expression
starting with << is unexpected.
There are two possibilities how to solve your problem:
1. Use only one << >> expression and put the music into {}:
%%%%%
\version "2.18.2"
\score {
<<
\new Staff { a f }
\new Staff { b g }
>>
}
%%%%%
2. Put the << >> << >> inside { } (so it’s one sequential music
expression). Then you have to reuse the (named) staves using \context
otherwise new staves will be created:
%%%%%
\version "2.18.2"
\score {
{
<<
\new Staff = "first" a
\new Staff = "second" b
>>
<<
\context Staff = "first" f
\context Staff = "second" g
>>
}
}
%%%%%
It’s the same for ChordNames and Lyrics (but you probably cannot use
\addlyrics as a shortcut for \new Lyrics \lyricsto … because you have to
name the Lyrics context).
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user