Marc Hohl <[email protected]> writes:
>>> \begin{appendix}
>>> \chapter{For Bb instruments}
>>> \begin{lilypond}
>>> #(define transposeTo d)
>>> \include{A.ly}
>>> \end{lilypond}
Rather \include "A.ly"
> That's exactly what I want to avoid. My idea boils down to allow for
> something like
>
> transposeTo = transposeTo OR c
>
> which is Lua-like. Is something similar possible in scheme?
Well, Scheme does not autodeclare variables, so it's more complex:
#(define transposeTo (if (defined? 'transposeTo) transposeTo #{ c #}))
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user