[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: forcing bar number events
From: |
address@hidden |
Subject: |
Re: forcing bar number events |
Date: |
Fri, 20 Sep 2013 10:06:38 +0200 |
Sent from my iPhone
On 20 sept. 2013, at 08:50, Werner LEMBERG <address@hidden> wrote:
>
> [2.17.26]
>
> Folks,
>
>
> consider this snippet
>
> \relative c'' {
> \compressFullBarRests
> \set Score.barNumberVisibility = #(every-nth-bar-number-visible 5)
> \override Score.BarNumber.break-visibility = #end-of-line-invisible
> c1 | c1 | c1 | c1 |
> c1 | c1 | c1 | c1 |
> R1*4 |
> c1 | c1 | c1 | c1 |
> }
>
> Is it possible to make bar number `10' visible automatically? Looking
> up the documentation, it seems that a bar number gets printed only if
> there is a bar line, and \compressFullBarRests prevents that...
>
> It would be a great simplification if it would not be necessary to
> artificially break up `R1*4' into `R1 R1*3'.
>
>
The property barNumberVisibility takes a function as its argument. I forget
what the function's arguments need to be, but if you can figure that out, you
can roll your own function that prints the number at bar 10.
Cheers,
MS
> Werner
> <barnumber.png>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user