lilypond-user
[Top][All Lists]
Advanced

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

Re: OpenLilyLib include-pattern, instrument header, and \include layout


From: Kieren MacMillan
Subject: Re: OpenLilyLib include-pattern, instrument header, and \include layout { }
Date: Wed, 7 Aug 2024 09:34:22 -0400

Hi Pond-mates!

>> to get the behavior of \header { instrument = "whatever" },
>> as seen with \bookpart,
> 
> What's available for changing the "instrument" header mid-piece,
> without using \bookpart at all?

%%%  SNIPPET BEGINS
\version "2.25.11"

\paper {
  scoreTitleMarkup = \markup \fromproperty #'header:instrument
}

\score {
  << c' >>
  \header {
    instrument = "Piano"
  }
}

\score {
  << c'' >>
  \header {
    instrument = "Trumpet"
  }
}
%%%  SNIPPET ENDS

I would assume this would be possible whatever mechanism one is using to create 
the scores & headers.

Cheers,
Kieren.
______________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




reply via email to

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