]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
Local updates to LSR July 2012
[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: d5307870fe0ad47904daba73792c7e17b813737f
28   texidocfr = "
29 La métrique est parfois indiquée non pas par une fraction (par 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} annulera ces modifications.  Lorsque cette
34 métrique sous la forme d'un 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 lieu d'une fraction)"
40
41   texidoc = "
42 Sometimes, a time signature should not print the whole fraction (e.g.
43 7/4), but only the numerator (7 in this case). This can be easily done
44 by using @code{\\override Staff.TimeSignature #'style = #'single-digit}
45 to change the style permanently. By using @code{\\revert
46 Staff.TimeSignature #'style}, this setting can be reversed. To apply
47 the single-digit style to only one time signature, use the
48 @code{\\override} command and prefix it with a @code{\\once}.
49
50 "
51   doctitle = "Time signature printing only the numerator as a number (instead of the fraction)"
52 } % begin verbatim
53
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