]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
LSR: Update.
[lilypond.git] / input / lsr / time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.12.3"
4
5 \header {
6   lsrtags = "rhythms, tweaks-and-overrides"
7
8   texidoc = "
9 Sometimes, a time signature should not print the whole fraction (e.g.
10 7/4), but only the numerator (7 in this case). This can be easily done
11 by using \\override Staff.TimeSignature #'style = #'single-digit to
12 change the style permanently. By using \\revert Staff.TimeSignature
13 #'style, this setting can be reversed. To apply the single-digit style
14 to only one time signature, use the \\override command and prefix it
15 with a \\once. 
16
17 "
18   doctitle = "Time signature printing only the numerator as a number (instead of the fraction)"
19 } % begin verbatim
20
21 \relative c'' {
22   \time 3/4 
23   c4 c c
24   % Change the style permanently
25   \override Staff.TimeSignature #'style = #'single-digit
26   \time 2/4 
27   c c
28   \time 3/4 
29   c c c
30   % Revert to default style:
31   \revert Staff.TimeSignature #'style
32   \time 2/4
33   c c
34   % single-digit style only for the next time signature
35   \once \override Staff.TimeSignature #'style = #'single-digit
36   \time 5/4
37   c c c c c
38   \time 2/4
39   c c
40 }