On Mon, 28 Aug 2023 at 10:17, Richard Shann <[email protected]> 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)
  }
}

Kind regards,
Xavier

-- 
Xavier Scheuer <[email protected]>

Reply via email to