lilypond-user
[Top][All Lists]
Advanced

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

Re: Can't get bar numbers to show up


From: William Zeitler
Subject: Re: Can't get bar numbers to show up
Date: Tue, 11 Jun 2019 18:06:23 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

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.




reply via email to

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