Dear Clyde,You should be able to do this with separate \book{} or \bookpart{} blocks. Try the example attached file. Does this achieve what you were hoping for?
Thanks, -William On 4/15/25 12:55, clyde wrote:
I would like the page header to change on the fly as data about the composition changes. For instance, I'd like the header on the pages for each part of a quartet to indicate the part name. The page number changes, but info from the header field does not get changed. Is there some means to do that? Using\fromproperty #'header:instrumentin one of the evenHeaderMarkup fields seems like the obvious method. The titles seem to get updated that way. But the page header doesn't change.
-- William Rehwinkel (any pronouns) Juilliard School '26 - Oberlin Conservatory '24 will...@williamrehwinkel.net - https://williamrehwinkel.net PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt
\version "2.25.24" partA = \relative c'' { c1 \pageBreak c1 } partB = \relative c'' { g1 \pageBreak g1 } partC = \relative c' { e1 \pageBreak e1 } partD = \relative c' { c1 \pageBreak c1 } \book { \bookpart { \header { title="Title" } \score { << \new Staff \partA \new Staff \partB \new Staff \partC \new Staff \partD >> } } \bookpart { \header { title="Title" instrument = "instrument 1" } \score { \new Staff \partA } } \bookpart { \header { title="Title" instrument = "instrument 2" } \score { \new Staff \partB } } \bookpart { \header { title="Title" instrument = "instrument 3" } \score { \new Staff \partC } } \bookpart { \header { title="Title" instrument = "instrument 4" } \score { \new Staff \partD } } }
OpenPGP_signature.asc
Description: OpenPGP digital signature