]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-the-bar-number-for-the-first-measure.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / printing-the-bar-number-for-the-first-measure.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "rhythms"
11
12   texidoc = "
13 By default, the first bar number in a score is suppressed if it is less
14 than or equal to `1'.  By setting @code{barNumberVisibility} to
15 @code{all-bar-numbers-visible}, any bar number can be printed for the
16 first measure and all subsequent measures.  Note that an empty bar line
17 must be inserted before the first note for this to work.
18
19 "
20   doctitle = "Printing the bar number for the first measure"
21 } % begin verbatim
22
23
24 \relative c' {
25   \set Score.barNumberVisibility = #all-bar-numbers-visible
26   \bar ""
27   c1 | d | e | f \break
28   g1 | e | d | c
29 }