I'm running into an issue trying to pass a variable between three files. For example:
- in fileA.ily I have the variable
number = "3"
- in fileB.ly I have the statement
\include "fileA.ily"
and\include "fileC.ily"
- in fileC.ily I have the statement
{c'4 \mark \markup { \number }
.
And this works fine. When I compile fileB, the variable number
gets picked up. The problem I'm running into, though, is when I use a more complicated scheme-style \include
statement in fileB. For example:
#(define subdir "somefolder")
#(define subdir2 "somefolder2")
\include #(string-append "firstDir/" subdir "/filename" ".ily")
\include #(string-append "firstDir/" subdir2 "/filename" ".ily")
When I use these kinds of includes, then when I compile fileB, it performs the includes correctly but doesn't find the number variable like it did in the first example. Any advice?