]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-bar-numbers-inside-boxes-or-circles.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / printing-bar-numbers-inside-boxes-or-circles.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.14.0"
8
9 \header {
10   lsrtags = "rhythms, tweaks-and-overrides"
11
12 %% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
13   texidoces = "
14
15 Los números de compás también se pueden imprimir dentro de rectángulos o de circunferencias.
16
17 "
18   doctitlees = "Imprimir números de compás dentro de rectángulos o circunferencias"
19
20
21
22 %% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
23   texidocde = "
24 Taktnummern können auch in Boxen oder Kreisen gesetzt werden.
25
26 "
27   doctitlede = "Setzen von Taktnummern in Kästen oder Kreisen"
28
29
30
31 %% Translation of GIT committish: 374d57cf9b68ddf32a95409ce08ba75816900f6b
32   texidocfr = "
33 Les numéros de mesures peuvent être encadrés ou entourés d'un cercle.
34
35 "
36   doctitlefr = "Inscrire le numéro de mesure dans un cadre ou un cercle"
37
38   texidoc = "
39 Bar numbers can also be printed inside boxes or circles.
40
41 "
42   doctitle = "Printing bar numbers inside boxes or circles"
43 } % begin verbatim
44
45 \relative c' {
46   % Prevent bar numbers at the end of a line and permit them elsewhere
47   \override Score.BarNumber #'break-visibility = #end-of-line-invisible
48   \set Score.barNumberVisibility = #(every-nth-bar-number-visible 4)
49
50   % Increase the size of the bar number by 2
51   \override Score.BarNumber #'font-size = #2
52
53   % Draw a box round the following bar number(s)
54   \override Score.BarNumber #'stencil
55     = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print)
56   \repeat unfold 5 { c1 }
57
58   % Draw a circle round the following bar number(s)
59   \override Score.BarNumber #'stencil
60     = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
61   \repeat unfold 4 { c1 } \bar "|."
62 }
63