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: David Kastrup
Subject: Re: Can't get bar numbers to show up
Date: Tue, 11 Jun 2019 23:20:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Lukas-Fabian Moser <address@hidden> writes:

> 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

#(#t #t #t) is already a constant expression, so ... = ##(#t #t #t)
should be sufficient.  But ... = #all-visible might be more readable.

>   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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

-- 
David Kastrup



reply via email to

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