Thanks.
On 2 August 2018 00:59:09 BST, Simon Albrecht <address@hidden>
wrote:
On 23.07.2018 16:22, Peter Gentry wrote:
It looks as though in this case the compiler is treating each
"addTextSpannerText.ly" in the parts as music rather than scheme.
\include acts in a way that is completely indistinguishable from just
pasting the content of the file instead of the include. So you need to
organise your input files in a way that allows for this, and that’s
nearly always just a matter of thinking it all the way through and
finding the right setup.
If the variable definition in your include file throws a mistake, then
apparently at the point where you write \include you’re still in an
environment where variable definitions aren’t possible.
Since it’s superfluous to include a file multiple times, you might also
look at the openlilylib/oll-core module, which implements a function to
only include a file if it hasn’t been included yet.
Best, Simon
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.