lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional ambitus


From: David Kastrup
Subject: Re: Conditional ambitus
Date: Sat, 26 Jan 2013 20:10:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> Why use a function at all?
>
> \version "2.16.2"
>
> isAmbitus = ##f
>
> #(define includeAmbitus
>   (if isAmbitus
>       #{ \with { \consists "Ambitus_engraver" } #}
>       #{ \with {  } #}))
>
> \score {
> \new Voice = "one" \includeAmbitus {e' f' g'}
> }
>
> Seems to work.

Sure, but the behavior of includeAmbitus depends on the value of
isAmbitus at the time of its definition.  Subsequent changes of
isAmbitus will no longer affect includeAmbitus.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]