lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bar numbers on Dynamics staff above music


From: Knute Snortum
Subject: Re: Bar numbers on Dynamics staff above music
Date: Sun, 27 Aug 2023 07:50:08 -0700

On Sun, Aug 27, 2023 at 7:31 AM Richard Shann <richard@rshann.plus.com> wrote:
If I create a Dynamics staff above the music, the bar numbers are
printed on it rather than on the staff with the music. At least this is
why setting the outside-staff-priority doesn't have any effect.
Is there a way to get bar numbers onto the staff with the music?

Here's my MWE, there may be better ways to do this:

%%%%%%%%%%%%%%%%%%%%%
\version "2.24"

dyn = {
  s4 s2.\f |
  s4 s2.\f |
  s4 s2.\f |
}

mus = {
  \override Score.BarNumber.outside-staff-priority = #-500
  \override Score.BarNumber.break-visibility = #end-of-line-invisible
  \set Score.barNumberVisibility = #(every-nth-bar-number-visible 1)
  \repeat unfold 8 c''8
  \override Score.BarNumber.Y-offset = -1 % <--- here's what's different
  \repeat unfold 16 c''8
}

\score {
  <<
    \new Dynamics \dyn
    \new Staff \mus
  >>
}
%%%%%

--
Knute Snortum


 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]