[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: conditional scores
From: |
David Kastrup |
Subject: |
Re: conditional scores |
Date: |
Fri, 26 Jul 2013 04:43:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
MarcM <address@hidden> writes:
> i took another look at the tag documentation and I was able to have a score
> printed only under a certain condition with tag.
>
> music = \relative c' {
> \tag #'dontPrintScore
> {
> c e g c
> }
> }
>
> \score {
> \keepWithTag #'inFunctions \music
> }
>
> This works. This only inconvenient is that i will have to tag all the mini
> scores i have in my library.
> Any other idea for a global #IFDEF like condition?
You could try to conditionalize on (ly:parser-output-name parser), and
you can use something like
#(if (equal (ly:parser-output-name parser) "mylibrary")
(ly:oarser-include-string parser "\\score { \\music }"))
--
David Kastrup