%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/aligning-bar-numbers.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
デフォルトで小節番号は親オブジェクトに右揃えされます。@c
つまり、小節番号は行の左端に、行内に表示される場合には小節線の左端に@c
表示されます。これを中央揃えあるいは左揃えにすることができます。
"
  doctitleja = "小節番号を揃える"

%% Translation of GIT committish: 2f3474d9af596d677ed5b7ce720ae4d0954a6b51
  texidocit = "
Per impostazione predefinita i numeri di battuta sono allineati a destra rispetto
al loro oggetto genitore. Di solito si tratta del margine sinistro della linea
oppure, se i numeri appaiono all'interno della linea, del lato sinistro della
stanghetta.  I numeri possono essere posizionati anche direttamente sopra la
stanghetta oppure allineati a sinistra della stanghetta.

"
  doctitleit = "Allineare i numeri di battuta"

%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
L'alignement des numéros de mesure dépend de l'endroit où ils se
produisent : en début de ligne, ils seront alignés par la droite ; ils
seront alignés sur la gauche de la barre de mesure dans les autres cas.
Ceci peut se modifier à l'aide de la fonction Scheme
@code{break-alignment-list}. Les trois arguments à cette fonction
déterminent respectivement l'alignement en fin de ligne, en cours de
ligne, et en début de ligne.
"

  doctitlefr = "Alignement des numéros de mesure"

%% Translation of GIT committish: fbf390d05408c5b842a22c122da734c54f92ca12
  texidoces = "

La alineación predeterminada de los números de compás depende de
su posición: al comienzo de un pentagrama, los números se alinean
por la derecha; en cualquier otra posición, se alinean por la
izquierda.  Usando la función de Scheme
@code{break-alignment-list}, se puede cambiar esto; los tres
argumentos de la función son la alineación para las posiciones al
final de la línea, en la parte media de la línea y al principio de
la línea (en este orden).

"
  doctitlees = "Alineación de los números de compás"

%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
  texidocde = "
Taktnummern sind standardmäßig links an ihrem Ursprungsobjekt
ausgerichtet.  Das ist normalerweise die linke Ecke einer Linie oder,
wenn die Nummern innerhalb einer Zeile gesetzt werden, auf der
linken Seite eines Taktstrichs.  Die Nummern können auch
direkt über dem Taktstrich positioniert werden oder rechts vom
Taktstrich gesetzt werden.

"
  doctitlede = "Taktnummern ausrichten"



%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
Els números de compàs s'alineen de forma predeterminada per la
dreta amb el seu objecte pare.  Aquest objecte és pel general
la vora esquerra, d'una línia o, si els números s'imprimeixen
dins de la línia, la vora esquerra d'una línia divisòria.  Els
números també es poden situar directament sobre la barra de
compàs o alineats per l'esquerra amb ella.
"
  doctitleca = "Alineació dels números de compàs"

  categories = "Rhythms"

  texidoc = "
The default alignment of bar numbers depends on its position: at the
beginning of a staff, bar numbers are right-aligned; at all other
positions, they are left-aligned. Using Scheme function
@code{break-alignment-list}, this can be changed; the three arguments
of this function are the alignment for end-of-line, middle-of-line, and
start-of-line position (in this order).
"

  doctitle = "Aligning bar numbers"
} % begin verbatim


\relative c' {
  \set Score.currentBarNumber = 111
  \override Score.BarNumber.break-visibility = #all-visible
  % Increase the size of the bar number by 2
  \override Score.BarNumber.font-size = 2
  % Print a bar number every second measure
  \set Score.barNumberVisibility = #(every-nth-bar-number-visible 2)

  c1 | c1 | c1 | \break
  c1 | c1 | c1 | \break

  \override Score.BarNumber.self-alignment-X =
    #(break-alignment-list CENTER RIGHT CENTER)
  c1 | c1 | c1 | \break
  c1 | c1 | c1 |
}

\paper {
  line-width = 70\mm
}



% ****************************************************************
% end ly snippet
% ****************************************************************
