rename from poly-metric
[lilypond.git] / input / test / polymetric.ly
blobe3b17665a58331e02e8caa5798693f86ff30926e
1 \version "1.7.18"
3 \header{ texidoc="@cindex Time Signature Multiple
5 @cindex polymetric music
7 You can have multiple time signatures occuring at the same time.
9 This is done by moving the timing engraver to staff context. Also,
10 Staff should be given the alias @code{Timing} to make @code{\time}
11 command work correctly. Barlines distort the regular spacing, though.
13 If the note durations do not line up, \times can be used to scale up a
14 staff. The second staff has a 3/4 signature with a 3/5 tuplet over all
15 of the notes. Switching off the tuplet bracket, and manually printing
16 a 10/8 sign gives the desired effect.
18 " }
20 \score{
21 \notes \relative c' <
22 \context Staff= AS {
23 \time 3/4
24 c4 c c | c c c |
26 \context Staff= DS {
27 \time 3/4
28 \property Staff.timeSignatureFraction= #'(10 . 8)
29 \property Staff.tupletInvisible = ##t
30 \times 3/5 { c4. c4. c4 c4 | c4. c4. c4 c4 }
32 \context Staff=BS {
33 \time 2/4
34 c4 c | c c | c c
36 \context Staff =CS {
37 \time 3/8
38 c4. c8 c c c4. c8 c c
42 \paper{
43 raggedright = ##t
44 \translator{
45 \ScoreContext
46 \remove "Timing_engraver"
48 \translator{
49 \StaffContext
50 \consists "Timing_engraver"
51 \alias "Timing"