]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-bar-numbers.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / aligning-bar-numbers.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.0"
8
9 \header {
10   lsrtags = "rhythms"
11
12   texidoc = "
13 Bar numbers by default are right-aligned to their parent object. This
14 is usually the left edge of a line or, if numbers are printed within a
15 line, the left hand side of a bar line.  The numbers may also be
16 positioned directly over the bar line or left-aligned to the bar line.
17
18 "
19   doctitle = "Aligning bar numbers"
20 } % begin verbatim
21
22 \relative c' {
23   \set Score.currentBarNumber = #111
24   \override Score.BarNumber.break-visibility = #all-visible
25   % Increase the size of the bar number by 2
26   \override Score.BarNumber.font-size = #2
27   % Print a bar number every second measure
28   \set Score.barNumberVisibility = #(every-nth-bar-number-visible 2)
29   c1 | c1
30   % Center-align bar numbers
31   \override Score.BarNumber.self-alignment-X = #CENTER
32   c1 | c1
33   % Left-align bar numbers
34   \override Score.BarNumber.self-alignment-X = #LEFT
35   c1 | c1
36 }