lilypond-user
[Top][All Lists]
Advanced

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

Re: Replacement Macros - Ooops! Try Again Again


From: Neil Puttock
Subject: Re: Replacement Macros - Ooops! Try Again Again
Date: Sun, 14 Dec 2008 17:21:57 +0000

Hi Simon,

2008/12/14 Simon J Mackenzie <address@hidden>:

> \header {
>   %Common settings
>   poet = #(markup lyricist)
> }
>
> \book {
>   \bookpart {
>      \header {
>         lyricist = \markup { \bold "Yaahda Ohda" }
>         composer = \markup { \italics "Bill G.t.s" }
>      }
>      etc...
>   }
>   \bookpart {
>      \header {
>         lyricist = \markup { \bold "Tom Albany" }
>         composer = \markup { \italics "Bill G.t.s" }
>      }
>      etc...
>   }
> etc...
> }
>
> This code will fail to compile because lyricist is an unbound variable
> in the first instance.

In this situation, you need to use \fromproperty
(http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Other#index-_005cfromproperty-1).

 \header {
  %Common settings
  poet = \markup { \fromproperty #'header:lyricist }
}

Regards,
Neil




reply via email to

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