]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-bar-numbers-inside-boxes-or-circles.ly
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / snippets / printing-bar-numbers-inside-boxes-or-circles.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "rhythms, tweaks-and-overrides"
7
8 %% Translation of GIT committish: 5a33019d8b4a837f564eadd4979501ff07e9dfd5
9   texidoces = "
10
11 Los números de compás también se pueden imprimir dentro de rectángulos o de circunferencias.
12
13 "
14   doctitlees = "Imprimir números de compás dentro de rectángulos o circunferencias"
15
16
17 %% Translation of GIT committish: 13ac9d1dfbcc297166948ee396e9ade078d2446e
18   texidocde = "
19 Taktnummern können auch in Boxen oder Kreisen gesetzt werden.
20
21 "
22   doctitlede = "Setzen von Taktnummern in Boxen oder Kreisen"
23
24   texidoc = "
25 Bar numbers can also be printed inside boxes or circles.
26
27 "
28   doctitle = "Printing bar numbers inside boxes or circles"
29 } % begin verbatim
30
31 \relative c' {
32   % Prevent bar numbers at the end of a line and permit them elsewhere
33   \override Score.BarNumber  #'break-visibility = #end-of-line-invisible
34   \set Score.barNumberVisibility = #(every-nth-bar-number-visible 4)
35
36   % Increase the size of the bar number by 2
37   \override Score.BarNumber #'font-size = #2
38
39   % Draw a box round the following bar number(s)
40   \override Score.BarNumber #'stencil
41     = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print)
42   \repeat unfold 5 { c1 }
43
44   % Draw a circle round the following bar number(s)
45   \override Score.BarNumber #'stencil
46     = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
47   \repeat unfold 4 { c1 } \bar "|."
48 }
49