Hi Simon,

Is there a reason to have the marks in a child context rather than just a
simultaneous music variable?

Saul

On Wed, Feb 8, 2023 at 10:24 AM Simon Albrecht <[email protected]>
wrote:

> Hello everyone,
>
> I am working on a large score with several ChoirStaves and want to have
> BarNumbers and Marks in the middle as well. However, when I use
> \RemoveEmptyStaves, removed Staves still have their BarNumbers etc.
>
> How can I solve this without hard-coding where the Staves are removed? Of
> course I could use manual breaks and override the stencils, but that would
> be cumbersome and inflexible.
>
> See the attached/following example—of course it has nothing actually to do
> with the ChoirStaff contexts.
>
> Best, Simon
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \version "2.25.0"
>
> \layout {
>   \context {
>     \Score
>     \remove Bar_number_engraver
>     \remove Staff_collecting_engraver
>     \remove Mark_tracking_translator
>     \remove Mark_engraver
>     \remove Text_mark_engraver
>   }
>   \context {
>     \ChoirStaff
>     \consists Bar_number_engraver
>     \consists Staff_collecting_engraver
>     \consists Mark_tracking_translator
>     \consists Mark_engraver
>     \consists Text_mark_engraver
>   }
>   \context {
>     \Staff
>     \RemoveEmptyStaves
>   }
> }
> marks = \new Devnull {
>   s1
>   s
>   \break
>   \mark\default
>   s
>   \textMark "here"
>   s
>   \break
>   \mark\default
>   s
>   \textMark "there"
>   s
> }
> A = \new Staff { 1 1 s1 s1 1 1 }
> B = \new Staff { 1 1 1 1 1 1 }
> <<
>   \new ChoirStaff << \marks \A >>
>   \new ChoirStaff << \marks \B >>
> >>
>

Reply via email to