]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/user-defined-time-signatures.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / user-defined-time-signatures.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.16
8 \version "2.19.16"
9
10 \header {
11   lsrtags = "rhythms"
12
13   texidoc = "
14 New time signature styles can be defined.  The time signature in
15 the second measure should be upside down in both staves.
16 "
17
18   doctitle = "User defined time signatures"
19 } % begin verbatim
20
21
22 #(add-simple-time-signature-style 'topsy-turvy
23    (lambda (fraction)
24      (make-rotate-markup 180 (make-compound-meter-markup fraction))))
25
26 <<
27   \new Staff {
28     \time 3/4 f'2.
29     \override Score.TimeSignature.style = #'topsy-turvy
30     \time 3/4 R2. \bar "|."
31   }
32   \new Staff {
33     R2. e''
34   }
35 >>