[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional compilation
From: |
David Kastrup |
Subject: |
Re: Conditional compilation |
Date: |
Wed, 30 Jan 2013 23:11:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Jérôme Plût <address@hidden> writes:
> I am writing some ensemble music and want the file to compile in two
> modes: with -dfull, compile all individual parts; without it, compile
> only the conductor part (for debugging). This is probably a FAQ but I
> cannot find an answer on the site: what is the preferred way to
> implement conditional compilation in Lilypond-guile? I naively tried
> several variants of
>
> \bookpart { \relative c' { c4 e g } }
> #(if (ly:get-option 'full) #{
> \bookpart { \relative c' { c4 d e } }
> #})
>
> but it looks like the second \bookpart is not exported to the
> top-level lilypond. I can more or less reimplement \bookpart in Scheme
> (why is it not already a Scheme construct anyway?) but there is
> certainly a simpler solution.
>
> Also, bonus points for shortness of solution:
Replace the first # with $.
--
David Kastrup