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