Section âTroubleshootingâ in Application Usage - LilyPond
Section âTroubleshootingâ in Application Usage - LilyPond
Section âTroubleshootingâ in Application Usage - LilyPond
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Chapter 1: Runn<strong>in</strong>g lilypond 13<br />
Warn<strong>in</strong>g staff aff<strong>in</strong>ities should only decrease<br />
This warn<strong>in</strong>g can appear if there are no staves <strong>in</strong> the pr<strong>in</strong>ted output, for example if there are<br />
just a ChordName context and a Lyrics context as <strong>in</strong> a lead sheet. The warn<strong>in</strong>g messages can<br />
be avoided by mak<strong>in</strong>g one of the contexts behave as a staff by <strong>in</strong>sert<strong>in</strong>g<br />
\override VerticalAxisGroup.staff-aff<strong>in</strong>ity = ##f<br />
at its start. For details, see “Spac<strong>in</strong>g of non-staff l<strong>in</strong>es” <strong>in</strong> <strong>Section</strong> “Flexible vertical spac<strong>in</strong>g<br />
with<strong>in</strong> systems” <strong>in</strong> Notation Reference.<br />
Error message unexpected \new<br />
A \score block must conta<strong>in</strong> a s<strong>in</strong>gle music expression. If <strong>in</strong>stead it conta<strong>in</strong>s several \new<br />
Staff, \new StaffGroup or similar contexts <strong>in</strong>troduced with \new without them be<strong>in</strong>g enclosed<br />
<strong>in</strong> either curly brackets, { ... }, or double angle brackets, >, like this:<br />
\score {<br />
% Invalid! Generates error: syntax error, unexpected \new<br />
\new Staff { ... }<br />
\new Staff { ... }<br />
}<br />
the error message will be produced.<br />
To avoid the error, enclose all the \new statements <strong>in</strong> curly or double angle brackets.<br />
Us<strong>in</strong>g curly brackets will <strong>in</strong>troduce the \new statements sequentially:<br />
\score {<br />
{<br />
\new Staff { a' a' a' a' }<br />
\new Staff { g' g' g' g' }<br />
}<br />
}<br />
<br />
<br />
<br />
<br />
<br />
<br />
but more likely you should be us<strong>in</strong>g double angle brackets so the new staves are <strong>in</strong>troduced <strong>in</strong><br />
parallel, i.e. simultaneously:<br />
\score {<br />
><br />
}