lilypond-user
[Top][All Lists]
Advanced

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

Re: macro variable doesn't behave same as original?


From: David Kastrup
Subject: Re: macro variable doesn't behave same as original?
Date: Tue, 14 Nov 2017 13:44:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Caagr98 <address@hidden> writes:

>> On 11/14/17 13:21, Patrick Smith wrote:
>>> This works:
>>> 
>>> \version "2.18.2"
>>> \relative c' {
>>>   \time 2/4
>>>   c4 c( d) d( e) e( f) f( g) g( a) a( b) b( c) c( b) b( a) a( g) g(
>>> f) f( e) e( d) d( c2)~ c2 \fermata  \bar "|."
>>>   layout{}
>>> }
>>> 
>>> This doesn't work:
>>> 
>>> \version "2.18.2"
>>> macrovariable = {c4 c( d) d( e) e( f) f( g) g( a) a( b) b( c) c( b)
>>> b( a) a( g) g( f) f( e) e( d) d( c2)~ c2 }
>>> \relative c' {
>>>   \time 2/4
>>>   \macrovariable \fermata  \bar "|."
>>>   layout{}
>>> }
>>> 
>>> Why?
>
> In the first version, you're applying the \fermata post-event to the
> c2, which is perfectly valid. In the second one, you're applying it to
> the {...}, which doesn't make sense. I'm afraid I don't know any good
> solution, though.

Using 2.21.0.  Which isn't released yet.  Not a particularly good
solution but one that should do the trick.

-- 
David Kastrup



reply via email to

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