OK, now a real question (after -- I think -- RTFMing this time).

I was looking for a way to have a text mark, e.g. '15-20" electronics' -- 
appear only once at the top of a score system, while also appearing in each of 
the parts (in the way that a rehearsal marking may be specified in every staff, 
but printed only once at the top).

https://lilypond.org/doc/v2.25/Documentation/notation/text-marks advises 
against using \mark for this -- but \textMark renders the text once for every 
time it's defined, *not* only once per staff system.

For a minimal example, take the "Printing marks on every staff" example and 
remove the layout block:

\score {
  <<
    \new Staff { \mark \default c''1 \textMark "molto" c'' }
    \new Staff { \mark \default c'1 \textMark "molto" c' }
  >>
}

You get *one* rehearsal mark A (good) and *two* times "molto," both of them 
over the topmost staff (huh?? understandable from a programming perspective, 
but nobody wants this printed result).

Other than tagging the \textMarks, how does one control this? This is for a 
woodwind quintet with electronics. I don't need the first bar to show:

Moderate q=116
15-20" electronics
15-20" electronics
15-20" electronics
15-20" electronics
15-20" electronics
fermata

(I think I can't abuse \mark for this, because there will be some cases where a 
timing like this will coincide with a rehearsal mark -- "the ability to have 
several text marks at the same moment" -- so I'm wondering if there's a better 
way than tagging.)

hjh

Reply via email to