]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
Doc: run makelsr locally
[lilypond.git] / Documentation / snippets / time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.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.2"
8
9 \header {
10   lsrtags = "tweaks-and-overrides, rhythms"
11
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
13   texidoces = "
14
15 A veces, la indicación de compás no debe imprimir la fracción completa
16 (p.ej.  7/4), sino sólo el numerador (7 en este caso).  Esto se puede
17 hacer fácilmente utilizando @code{\\override Staff.TimeSignature
18 #'style = #'single-digit} para cambiar el estilo
19 permanentemente. Usando @code{\\revert Staff.TimeSignature #'style},
20 se puede revertir el cambio.  Para aplicar el estilo de un dígito
21 único a una sola indicación de compás, utilice la instrucción
22 @code{\\override} y anteponga la instrucción @code{\\once}.
23
24 "
25   doctitlees = "Indicación de compás imprimiendo sólo el numerador (en lugar de la fracción)"
26
27 %% Translation of GIT committish: 3b125956b08d27ef39cd48bfa3a2f1e1bb2ae8b4
28   texidocfr = "
29 La métrique est parfois indiquée non pas par une fraction (p.ex. 7/4)
30 mais simplement par son numérateur (7 dans ce cas).  L'instruction
31 @code{\\override Staff.TimeSignature #'style = #'single-digit} permet de
32 déroger au style par défaut de manière permanente -- un @code{\\revert
33 Staff.TimeSignature #'style} d'annuler ces modifications.  Lorsque cette
34 métrique sous la forme d'une seul chiffre ne se présente qu'une seule
35 fois, il suffit de faire précéder l'instruction @code{\\override} d'un
36 simple @code{\\once}.
37
38 "
39   doctitlefr = "Affichage seulement du numérateur d'une métrique (au
40 lieu d'une fraction)"
41
42
43   texidoc = "
44 Sometimes, a time signature should not print the whole fraction (e.g.
45 7/4), but only the numerator (7 in this case). This can be easily done
46 by using @code{\\override Staff.TimeSignature #'style = #'single-digit}
47 to change the style permanently. By using @code{\\revert
48 Staff.TimeSignature #'style}, this setting can be reversed. To apply
49 the single-digit style to only one time signature, use the
50 @code{\\override} command and prefix it with a @code{\\once}.
51
52 "
53   doctitle = "Time signature printing only the numerator as a number (instead of the fraction)"
54 } % begin verbatim
55
56
57 \relative c'' {
58   \time 3/4
59   c4 c c
60   % Change the style permanently
61   \override Staff.TimeSignature #'style = #'single-digit
62   \time 2/4
63   c4 c
64   \time 3/4
65   c4 c c
66   % Revert to default style:
67   \revert Staff.TimeSignature #'style
68   \time 2/4
69   c4 c
70   % single-digit style only for the next time signature
71   \once \override Staff.TimeSignature #'style = #'single-digit
72   \time 5/4
73   c4 c c c c
74   \time 2/4
75   c4 c
76 }
77