On 07/03/2020 12:19, Noeck wrote:
Hi,

I would like to populate header fields based on other header fields
(copyright based on author is just an example):

\version "2.20.0"

\header {
   author = "Name"
}

% call a function here equivalent to writng
\header {
   copyright = #(string-append "© " "Name")
   % where "Name" is the author field from above
}

{ a }

Is that possible?

Cheers,
Joram

Does this solve your problem?

\version "2.20.0"

\header {
  author = "Name"
  copyright = \markup \concat { "© " \fromproperty #'header:author }
}

\score {
  c''1
}


--
Timothy Lanfear, Bristol, UK.


Reply via email to