lilypond-user
[Top][All Lists]
Advanced

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

Re: variable containing header


From: Nathan Ho
Subject: Re: variable containing header
Date: Tue, 26 May 2015 06:57:53 -0700

On Tue, May 26, 2015 at 5:23 AM, Gianmaria Lari <address@hidden> wrote:
I'm trying to define a variable containing the header but lilypond does not
accept it. Am'I doing some error or is this forbidden?

% my source
\version "2.18.2"
head = \header {
  title = "The Third Position"
}

\score {
  {a b c d}
  \head
  \layout {}
}


Thank you, g

Unfortunately it's not possible :( The grammar simply doesn't allow assignment of \header objects to variables.

As proposed here https://lists.gnu.org/archive/html/lilypond-user/2013-04/msg00184.html one workaround is to place the header in a separate file and use \include.

Regards,
Nathan 

reply via email to

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