]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/contemporary/time-signatures-on-top-of-the-score-using-a-separate-staff.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / contemporary / time-signatures-on-top-of-the-score-using-a-separate-staff.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 in XXth century music, where time signatures tend to change a lot, it
6 is sometimes recommended to put the time signatures on top of the score
7 (or above each StaffGroup in case of an orchestral score). This can be
8 achieved by creating a dummy staff which only contains the
9 Time-signature-engraver). In this specific example, I've used a
10 separate identifier to define every time signature change, which allows
11 me to not bother entering them again when typing the actual music
12 (careful though: it makes getting lost easier!).
13 " }
14
15 \layout{
16   \context { 
17     \type "Engraver_group"
18     \consists "Time_signature_engraver"
19     \consists "Axis_group_engraver"
20     \name "TimeSig"
21     \override TimeSignature #'extra-offset = #'(-2.2 . 0.0 )
22     \override TimeSignature #'font-size = #3
23   }
24   \context {
25     \Score \accepts TimeSig
26   }
27
28   \context { \Staff
29     \override TimeSignature #'transparent = ##t
30   }
31 }
32
33 timeSignatures = { \time 2/4 s2 \time 3/4 s2. \time 4/4 s1 }
34 \score {
35
36 <<      \new TimeSig \timeSignatures
37         \new Staff \relative { c'2  c2.  c1 }
38         \new Staff { a2 a2. a1}
39  >>
40 }