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: Patrick Smith
Subject: Re: macro variable doesn't behave same as original?
Date: Tue, 14 Nov 2017 08:06:47 -0500

I can wait for 2.21.0.

I'll continuing coding with the assumption that the macrovariable will indeed be a one-for-one, text in-place, copy of the original.

On Tue, Nov 14, 2017 at 7:44 AM, David Kastrup <address@hidden> wrote:
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

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

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