]> git.donarmstrong.com Git - lilypond.git/blob - input/test/auto-staff-switch.ly
09f6393cd2b87688a2ea5a98215fb777239e082b
[lilypond.git] / input / test / auto-staff-switch.ly
1
2 \score  {
3 \notes {
4         \context AutoSwitchGrandStaff \relative c' {
5         c8^8 d^8 b^8 a^8 [a,^8 f'^8 g,^8 ~ g]
6
7         }
8 }
9
10 \paper {
11 \translator { \ScoreContext
12 \accepts AutoSwitchGrandStaff;
13 }
14 \translator{
15         \context "Line_group_engraver_group";
16         \name AutoSwitchGrandStaff;
17         \consists "Span_bar_engraver";
18         \consists "Vertical_align_engraver";
19         \consists "Piano_bar_engraver";
20         minVerticalAlign = 2.*\staffheight;
21         maxVerticalAlign = 2.*\staffheight;     
22
23         \accepts "AutoSwitchContext";
24         \accepts "Staff";
25 }
26 \translator {
27         \context "Engraver_group_engraver";
28         \name "AutoSwitchContext";
29         \consists "Staff_switching_translator";
30 }
31
32 }}
33
34 \version "1.0.16";