|
From: | Hans Aikema |
Subject: | Re: (De)activate lilypond-source snippets based on whether a variable is defined |
Date: | Mon, 20 May 2013 21:44:18 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
On 20-5-2013 15:26, David Kastrup wrote:
Not necessarily fabulous, but you could likely work with $(if (defined? 'soloOneMusic) #{ \new Staff = soloOne \with { midiMinimumVolume = \volFullMin midiMaximumVolume = \volFullMax }<< \new Voice = "voiceSoloOne" { << \global \soloOneMusic >> } >> #})
Looks pretty much like what I'd like to accomplish and is still fairly readable for programmers. Thanks, for the snippet and the pointers for more information. I'll play around a little to see if it fits my needs. If I can get this working it saves me a very error-prone layout-file editing task.
regards, Hans
[Prev in Thread] | Current Thread | [Next in Thread] |