|
From: | Lukas-Fabian Moser |
Subject: | Re: Can't get bar numbers to show up |
Date: | Tue, 11 Jun 2019 22:47:10 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
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 LukasPS. 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.
[Prev in Thread] | Current Thread | [Next in Thread] |