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