lilypond-user
[Top][All Lists]
Advanced

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

Re: Combining roughly 70 separate files into a single book


From: David Kastrup
Subject: Re: Combining roughly 70 separate files into a single book
Date: Mon, 04 May 2020 10:56:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Brent Annable <address@hidden> writes:

> Hi Federico,
>
> Your strategy seems like good advice, and I've changed the files around so
> I can do it. But the master file is getting very long and complicated with
> all the \score blocks, so I have a question: can you put a \score block
> into a variable, to avoid all the extra code in the master file? Whenever I
> try to do that I get an error message, using the syntax below:
>
> myScore = { \score { \new Staff [etc.] } }
>
> \myScore
>
> Is there some special way of putting the \score block into a variable so it
> doesn't produce an error?

Only a rather unspecial way.

myScore = \score { \new Staff [etc.] }

Like with () parens in Scheme, {} braces in LilyPond are not redundant
but carry meaning.  You cannot just add additional layers and expect
things to behave the same.

-- 
David Kastrup



reply via email to

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