]> git.donarmstrong.com Git - lilypond.git/blob - input/test/ass-extra-voice.ly
release: 1.3.12
[lilypond.git] / input / test / ass-extra-voice.ly
1 global = \notes {
2         \key a \minor;
3         \time 6/4;
4 %       \skip 1.*34;
5 %       \bar ".|";
6 }
7
8 melody = \notes\relative c''{
9         r2 r r 
10         r2 r r
11         r4 a'8-- \< a-- a-- a-- c-- \!b-- a--\> gis f \!e 
12         es8 \grace b c r4 r2 r
13 }
14
15 basloopje = \notes\relative c{
16         d,8(    a' d f a d f d a f d    )a
17 }
18
19 accompany = \notes \relative c{
20         \notes\relative c \basloopje
21         \notes\relative c \basloopje
22         \notes\relative c \basloopje
23         \notes\relative c \basloopje
24 }
25
26 \score{
27         \notes{
28                 \context AutoSwitchGrandStaff \relative c <
29                         \global
30                         \context Staff=upper { 
31                                 \context Voice=foo
32                                 \property Voice.verticalDirection = 1
33                                 \property Voice.scriptVerticalDirection = 1
34                                 \melody 
35                         }
36                         \context AutoSwitchContext \accompany
37                 >
38         }
39
40         \paper {
41                 gourlay_maxmeasures = 4.;
42                 indent = 8.\mm;
43                 textheight = 295.\mm;
44
45                 % no slur damping
46                 slur_slope_damping = 100.0;
47
48                 \translator{ 
49                         \StaffContext
50                         % don't auto-generate bars: not a good idea: -> no breakpoints
51                         % barAuto = "0";
52                         % urg defaultBarType = "";
53                         defaultBarType = "empty";
54                         \remove "Time_signature_engraver";
55                 }
56                 \translator{ 
57                         \GraceContext
58                         \remove "Local_key_engraver";
59                 }
60                 \translator { 
61                         \ScoreContext
62                         \accepts AutoSwitchGrandStaff;
63                 }
64                 \translator{
65                         \type "Engraver_group_engraver";
66                         \name AutoSwitchGrandStaff;
67                         \consists "Span_bar_engraver";
68                         \consists "Vertical_align_engraver";
69                         \consists "Piano_bar_engraver";
70                         \consistsend "Axis_group_engraver";
71                         minVerticalAlign = 2.*\staffheight;
72                         maxVerticalAlign = 2.*\staffheight;     
73                         switcherName = "Voice";
74                         acceptorName = "Thread";
75                         staffContextName = "Staff";
76
77                         \accepts "AutoSwitchContext";
78                         \accepts "Staff";
79                         slurVerticalDirection = 1;
80                         verticalDirection = -1;
81                         beamAutoEnd = "1/2";
82                 }
83                 \translator {
84                         \type "Engraver_group_engraver";
85                         \name "AutoSwitchContext";
86                         \consists "Staff_switching_translator";
87                 }
88         }
89 % broken 1.1.51.hwn2
90 %       \midi {
91 %               \tempo 4 = 54;
92 %       }
93 }
94