[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditional ambitus
From: |
Kevin Stolt |
Subject: |
Conditional ambitus |
Date: |
Sat, 26 Jan 2013 17:32:15 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi,
I'm trying to conditionally add ambitus based on a variable definition. I'm
having trouble figure out how to do it.
\version "2.16.2"
isAmbitus = #f
includeAmbitus = #(define-music-function
(parser location)
()
(if isAmbitus
#{ \with { \consists "Ambitus_engraver" } #}
#{ #} ))
%When I try to use includeAmbitus:
\score {
\new Voice = "one" \includeAmbitus {e' f' g'}
}
It gives an error about an unexpected EVENT_IDENTIFIER
Is this there a different function type I should be using
instead of define-music-function?
Thank you.
Kevin
- Conditional ambitus,
Kevin Stolt <=