|
From: | Marc Hohl |
Subject: | Re: optional transposition triggered by an external file? |
Date: | Tue, 30 Jul 2013 10:49:40 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
Am 30.07.2013 09:56, schrieb David Kastrup:
Marc Hohl <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |