]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
Docs: run convert-ly for 2.14.0.
[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.0"
8
9 \header {
10   lsrtags = "rhythms, tweaks-and-overrides"
11
12 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
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: 190a067275167c6dc9dd0afef683d14d392b7033
28
29   texidocfr = "
30 La métrique est parfois indiquée non pas par une fraction (p.ex. 7/4)
31 mais simplement par son numérateur (7 dans ce cas).  L'instruction
32 @code{\\override Staff.TimeSignature #'style = #'single-digit} permet de
33 déroger au style par défaut de manière permanente -- un @code{\\revert
34 Staff.TimeSignature #'style} d'annuler ces modifications.  Lorsque cette
35 métrique sous le forme d'une seul chiffre ne se présente qu'une seule
36 fois, il suffit de faire précéder l'instruction @code{\\override} d'un
37 simple @code{\\once}.
38
39 "
40   doctitlefr = "Affichage seulement du numérateur d'une métrique (au
41 lieu d'une fraction)"
42
43
44   texidoc = "
45 Sometimes, a time signature should not print the whole fraction (e.g.
46 7/4), but only the numerator (7 in this case). This can be easily done
47 by using @code{\\override Staff.TimeSignature #'style = #'single-digit}
48 to change the style permanently. By using @code{\\revert
49 Staff.TimeSignature #'style}, this setting can be reversed. To apply
50 the single-digit style to only one time signature, use the
51 @code{\\override} command and prefix it with a @code{\\once}.
52
53 "
54   doctitle = "Time signature printing only the numerator as a number (instead of the fraction)"
55 } % begin verbatim
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