# How to add extra rehearsal marks in orch. score in Lilypond

In Lilypond (ver. 2.18.2), how can I place rehearsal marks above each staff group in an orchestral score? Currently, it only places rehearsal marks above the top-most staff only.

Refer to the below image: Lilypond puts the rehearsal mark highlighted in yellow; what I would like is the same rehearsal mark ("G") where the red circles are.

P.S. Anyone want to guess what work this is? :-)

• Looks like Tchaik 4 to me! :-) – Richard Dec 28 '17 at 0:01
• Aren't you supposed to add the marks manually above each system where you want one? – Kilian Foth Dec 28 '17 at 10:54
• @KilianFoth: I like that idea, but then when I print out individual parts (other than the top-most staff's instrument's) then two symbols will appear - the rehearsal mark and the extra markup letter. Not to mention I'd have to do some horizontal adjustment to get the markup aligned with the bar line. – pr1268 Dec 30 '17 at 10:12
• @Richard: Was this really that easy to recognize? :-) – pr1268 Dec 31 '17 at 9:41

Maybe something like this? Obviously some spacing tweaks are in order.

marks = {
\repeat unfold 16 { s4 }
\mark \default
\repeat unfold 16 { s4 }
\mark \default
}
music = {
\repeat unfold 32 { s4 }
}
\score {
<<
\new StaffGroup {
\new Staff \music
}
\new Dynamics \marks
\new StaffGroup <<
\new Staff \music
\new Staff \music
>>
\new Dynamics \marks
\new StaffGroup {
\new Staff \music
}
>>
\layout {
\context {
\Dynamics
\consists Mark_engraver
}
}
}


• This is an interesting approach, but I'm a little apprehensive about conflating rehearsal marks with dynamic marks. How will this affect existing dynamics markings in the score? (Notice the "p"s in my score image.) On a more positive note, I'm okay with the vertical spacing as I would even consider placing the rehearsal marks below the bottom-most staff in a group as I've seen in many scores (including the source score to this piece). – pr1268 Jan 2 '18 at 5:14
• @pr1268 - Understandable. The music I typeset often does not require fine-grained detail or control, and so this usually suits its purpose. To answer your question, it will not affect existing dynamic markings in the score unless those dynamic markings are part of a Dynamics context, and you change some property inside of a Dynamics context that would affect them. For instance, overriding RehearsalMark.color inside of the Dynamics context will not affect any dynamics inside the Dynamics context, but VerticalAxisGroup.nonstaff-relatedstaff-spacing would. – Neal Jan 2 '18 at 15:11
• @pr1268 - Also, see here --- lilypond.org/doc/v2.18/Documentation/notation/… --- I believe this can be used to create an entirely new context that can be used for rehearsal marks alone without conflicting with any other contexts. I merely used Dynamics earlier because it seems to be a pretty bare-bones context that doesn't require a lot of tweaking. – Neal Jan 2 '18 at 15:17
• How do I remove all the extra stacked rehearsal marks with hidden staves? My score is "Frenched scored", i.e. with \context { \Staff \removeEmptyStaves } in the layout block, but the rehearsal marks are still appearing - duplicated, on top of one another. Any ideas how to fix this? – pr1268 Jan 7 '18 at 1:18
• @pr1268 - I see what you mean. I'll be honest, I'm still working it out, myself. Feels like it should be so close, but there's probably something fundamental I'm missing. If you are interested in more digging, it looks like this may provide some clues: lilypond.org/doc/v2.18/Documentation/internals/… , although I will be of little help in explaining just what that all means. – Neal Jan 8 '18 at 17:38