Sent from my iPhone

On 20 sept. 2013, at 08:50, Werner LEMBERG <w...@gnu.org> 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
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to