On 12/29/17 20:26, Carl Sorensen wrote: > Variables can only be defined at the top level. See the Notation Reference > 3.1.4
That's not entirely true. You can define variables in \paper, \layout, and \midi blocks too. Also, you could use the (ly:parser-define! k v) function inside a bookpart, though I don't think that would provide any kind of scoping. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user