%% 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)),quote,ragged-right]
\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))
  line-width = 160\mm - 2.0 * 10.16\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))
  ragged-right = ##t
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/printing-bar-numbers-using-modulo-bar-number-visible.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: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
Lorsque le reste de la division du numéro de la mesure courante par le
premier argument de @code{modulo-bar-number-visible} égale le deuxième
argument, LilyPond imprime un objet @code{BarNumber}.

Ceci permet d'imprimer le numéro de mesure à un intervalle donné, par
exemple :

@itemize
@item
@code{(modulo-bar-number-visible 3 2)} → affichage à 2, 5, 8…
@item
@code{(modulo-bar-number-visible 4 2)} → affichage à 2, 6, 10…
@item
@code{(modulo-bar-number-visible 3 1)} → affichage à 3, 5, 7…
@item
@code{(modulo-bar-number-visible 5 2)} → affichage à 2, 7, 12…
@end itemize
"

  doctitlefr = "Impression du numéro de mesure selon @code{modulo-bar-number-visible}"

%% Translation of GIT committish: 61b32ff2340073b2d9600a20fdedf65d58be720b
  texidoces = "
Si el resto de dividir el número del compás en curso entre el
primer argumento del @code{modulo-bar-number-visible} es igual al
segundo argumento, entonces imprimir el número del compás.

Es útil para imprimir el número de compás a ciertas distancias.
Algunos ejemplos:

@itemize
@item
@code{(modulo-bar-number-visible 3 2)} → imprime 2, 5, 8, ...
@item
@code{(modulo-bar-number-visible 4 2)} → imprime 2, 6, 10, ...
@item
@code{(modulo-bar-number-visible 2 1)} → imprime 3, 5, 7, ...
@item
@code{(modulo-bar-number-visible 5 0)} → imprime 5, 10, 15, ...
@end itemize
"

  doctitlees = "Impresión de los números de compás usando @code{modulo-bar-number-visible}"

  categories = "Rhythms"

  texidoc = "
If the remainder of the division of the current bar number by the first
argument of @code{modulo-bar-number-visible} equals its second
argument, print a bar number.

This is useful to print the bar number at certain distances. Some
examples:

@itemize
@item
@code{(modulo-bar-number-visible 3 2)} → prints 2, 5, 8, ...
@item
@code{(modulo-bar-number-visible 4 2)} → prints 2, 6, 10, ...
@item
@code{(modulo-bar-number-visible 2 1)} → prints 3, 5, 7, ...
@item
@code{(modulo-bar-number-visible 5 0)} → prints 5, 10, 15, ...
@end itemize
"

  doctitle = "Printing bar numbers using modulo-bar-number-visible"
} % begin verbatim


\layout {
  \context {
    \Score
    \override BarNumber.break-visibility = ##(#f #t #t)
    barNumberVisibility = #(modulo-bar-number-visible 5 0)
  }
}

\relative c' {
  c1 | d | e | f \break
  g1 | e | d | c
}



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