]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
Change stringTunings from list of semitones to list of pitches
[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.39"
5
6 \header {
7   lsrtags = "rhythms, tweaks-and-overrides"
8
9 %% Translation of GIT committish: a874fda3641c9e02f61be5c41b215b8304b8ed00
10   texidoces = "
11
12 A veces, la indicación de compás no debe imprimir la fracción completa
13 (p.ej.  7/4), sino sólo el numerador (7 en este caso).  Esto se puede
14 hacer fácilmente utilizando @code{\\override Staff.TimeSignature
15 #'style = #'single-digit} para cambiar el estilo
16 permanentemente. Usando @code{\\revert Staff.TimeSignature #'style},
17 se puede revertir el cambio.  Para aplicar el estilo de un dígito
18 único a una sola indicación de compás, utilice la instrucción
19 @code{\\override} y anteponga la instrucción @code{\\once}.
20
21 "
22   doctitlees = "Indicación de compás imprimiendo sólo el numerador (en lugar de la fracción)"
23
24 %% Translation of GIT committish: 190a067275167c6dc9dd0afef683d14d392b7033
25
26   texidocfr = "
27 La métrique est parfois indiquée non pas par une fraction (p.ex. 7/4)
28 mais simplement par son numérateur (7 dans ce cas).  L'instruction
29 @code{\\override Staff.TimeSignature #'style = #'single-digit} permet de
30 déroger au style par défaut de manière permanente -- un @code{\\revert
31 Staff.TimeSignature #'style} d'annuler ces modifications.  Lorsque cette
32 métrique sous le forme d'une seul chiffre ne se présente qu'une seule
33 fois, il suffit de faire précéder l'instruction @code{\\override} d'un
34 simple @code{\\once}.
35
36 "
37   doctitlefr = "Affichage seulement du numérateur d'une métrique (au
38 lieu d'une fraction)"
39
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 \relative c'' {
55   \time 3/4
56   c4 c c
57   % Change the style permanently
58   \override Staff.TimeSignature #'style = #'single-digit
59   \time 2/4
60   c4 c
61   \time 3/4
62   c4 c c
63   % Revert to default style:
64   \revert Staff.TimeSignature #'style
65   \time 2/4
66   c4 c
67   % single-digit style only for the next time signature
68   \once \override Staff.TimeSignature #'style = #'single-digit
69   \time 5/4
70   c4 c c c c
71   \time 2/4
72   c4 c
73 }
74