Am 30.07.2013 09:56, schrieb David Kastrup:
Marc Hohl <m...@hohlart.de> writes:

\begin{appendix}
\chapter{For Bb instruments}
\begin{lilypond}
#(define transposeTo d)
\include{A.ly}
\end{lilypond}

Rather \include "A.ly"

Of course, silly me.

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 #}))

'defined?' is exactly what I needed – thanks a lot!

Marc



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to