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 <[email protected]> wrote: > Caagr98 <[email protected]> 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 > [email protected] > https://lists.gnu.org/mailman/listinfo/lilypond-user >
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
