lilypond-user
[Top][All Lists]
Advanced

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

Re: Forcing bar number display at will


From: Greg
Subject: Re: Forcing bar number display at will
Date: Sat, 26 Dec 2015 10:54:59 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 26/12/2015 09:40, Menu Jacques wrote:
> Hello folks,
> 
> I find it convenient when I don’t have to play for a number of measures to 
> decompose the multiple rests in portions corresponding to what the others 
> play, and to have bar numbers showing up here and then to help catching up 
> when I’ve got to blow again.
> 
> What I don’t understand in the example below is why:
> 
>   \once\override Score.BarNumber.break-visibility = ##(#f #t #f)
> 
> shows bar numbers 10 and 19 even though they’re at a beginning of line, and 
> not 1.
> 
> To get bar number 1 displayed, I’ve got to use:
> 
>   \once\override Score.BarNumber.break-visibility = ##(#f #t #t)
> 
> Thanks for your help!
> 
> 
> %%%%%%%%%
> 
> \version "2.19.33"
> 
> %{
> http://lilypond.org/doc/v2.19/Documentation/notation/bars#bar-numbers
> 
> The order of the three values is
>   end of line visible,
>   middle of line visible,
>   beginning of line visible:
> \override Score.BarNumber.break-visibility = ##(#t #t #t)
> %}
> 
> myDisplayBarNummber = {
>   % Allow bar numbers to be displayed not only at beginning of lines:
> %  \once\override Score.BarNumber.break-visibility = ##(#f #t #t)
>   \once\override Score.BarNumber.break-visibility = ##(#f #t #f)
> 
>   % Allow bar number 1 to be displayed:
>   \once\set Score.barNumberVisibility = #all-bar-numbers-visible
> }
> 
> \layout {
> %  indent = 0
>   ragged-last = ##t
> }
> 
> {
>   % Allow first bar number to be displayed, and do it:
>   \bar ""
>   \myDisplayBarNummber
> 
>   R1*2 | \barNumberCheck #3
>   \myDisplayBarNummber
> 
>   R1*3 | \barNumberCheck #6
>   \myDisplayBarNummber
> 
>   R1*9 | \barNumberCheck #15
>   \myDisplayBarNummber
> 
>   R1*7 | \barNumberCheck #22
>   \myDisplayBarNummber
> 
>   R1*5 | \barNumberCheck #27 \break
>   \myDisplayBarNummber
> 
>   R1*6 | \barNumberCheck #33
> }
> 
> %%%%%%%%%
> 
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 


Is this what you had in mind?

Greg.


%%%%%%%%

\version "2.19.31"

%{
http://lilypond.org/doc/v2.19/Documentation/notation/bars#bar-numbers

The order of the three values is
  end of line visible,
  middle of line visible,
  beginning of line visible:
\override Score.BarNumber.break-visibility = ##(#t #t #t)
%}

myDisplayBarNummber = {
  \once\override Score.BarNumber.break-visibility = ##(#f #t #f)
}

\layout {
%  indent = 0
  ragged-last = ##t
}

{
  % Allow first bar number to be displayed, and do it:
  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar ""

  R1

  % Now prevent all bar numbers unless overridden
  \override Score.BarNumber.break-visibility = ##(#f #f #f)

  R1 | \barNumberCheck #3
  \myDisplayBarNummber

  R1*3 | \barNumberCheck #6
  \myDisplayBarNummber

  R1*9 | \barNumberCheck #15
  \myDisplayBarNummber

  R1*7 | \barNumberCheck #22
  \myDisplayBarNummber

  R1*5 | \barNumberCheck #27 \break
  \myDisplayBarNummber

  R1*6 | \barNumberCheck #33
}

%%%%%%%%



reply via email to

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