On Mon, 2023-08-28 at 11:27 +0200, Xavier Scheuer wrote:
> On Mon, 28 Aug 2023 at 10:17, Richard Shann <rich...@rshann.plus.com>
> wrote:
> > 
> > There are more problems than I thought with your solution-
> > here is your example with some higher notes in it - the bar numbers
> > leave the staff again:
> 
> Hello,
> 
> Removing "Bar_number_engraver" from the Score context and adding it
> to the Staff context (or the first staff with \with if you have more
> than one staff) will get the bar numbers onto the staff.
> It should give you the same bar number positioning as if the Dynamics
> context was not above your staff.
> If you have some overrides, change them from the Score context to the
> Staff context as well.
> 
> \layout {
>   \context {
>     \Score
>     \remove "Bar_number_engraver"
>   }
>   \context {
>     \Staff  % if more than one Staff, use \with for the first Staff
> in your \score block
>     \consists "Bar_number_engraver"
>     \override BarNumber.break-visibility = #end-of-line-invisible
>     barNumberVisibility = #(every-nth-bar-number-visible 1)
>   }
> }
> 
Perfect! Thank you so much.

Richard

> Kind regards,
> Xavier
> 


Reply via email to