Thanks, all, this did the trick!

William

On 6/11/19 13:47, Lukas-Fabian Moser wrote:
Hi William,

In fact, the example does everything I want, except I can't figure out how to get bar numbers to show up! Ideally one per bar at the top, but a bar number at the beginning of each system would be almost as good!

Try the following additions:

global = {
  \key c \major
  \time 4/4
  \bar "" % Permits bar 1 to get a bar number
}

and

scoreAViolinIPart = \new Staff \with {
  instrumentName = "Violin I"
  midiInstrument = "violin"
  \consists "Bar_number_engraver" % Show bar numbers
  \override BarNumber.break-visibility = #'#(#t #t #t) % Show a bar number for every bar   barNumberVisibility = #all-bar-numbers-visible % Also show number for bar 1
} \scoreAViolinI

Best
Lukas

PS. Folks on the list advocating separation of content and layout will probably object to the construction of having a \new Staff \with { ... } inside a _music_ variable, but of course it's possible to do it that way.


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to