Il giorno ven 11 nov 2016 alle 16:45, Bernhard Kleine
<address@hidden> ha scritto:
However when the global variable to the top of 2test.ly, the file
could be compiled. I tried then the same on my full piece and I
failed while parsing with
F:/Meine Noten/EigeneNoten/WeihnachtsLieder/2test.ly:2:1: error:
syntax error, unexpected STRING
global = {
To make this evident I include the files once more. I do not
understand this.
I hit the same wall some time ago :)
If you read the first error message:
/tmp/2test.ly:2:1: error: syntax error, unexpected STRING
it points to the definition of global in the included file.
The problem here is that the variable is included (and evaluated)
within a \bookpart block, but variables can be defined only at top level.
That's why you need an extra file only for variables (the use of .ily
extension is only a useful convention, as Urs already wrote).
I don't think that there's another way to achieve what you want.
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user