]> git.donarmstrong.com Git - lilypond.git/blob - input/test/staff-container.ly
release: 1.3.145
[lilypond.git] / input / test / staff-container.ly
1
2
3 \header {
4
5  texidoc = "By splitting the grouping (Axis_group_engraver) and
6 creation functionality into separate contexts, you can override
7 interesting things. You can also drop the \consistsend feature.";
8
9 }
10
11
12 \score  {
13  \notes <
14         \context StaffContainer = SA { \property StaffContainer.StaffSymbol \set
15           #'staff-space = #0.8
16           \context Staff {        c4 c4 } }
17         \context StaffContainer =SB { \context Staff { d f  } }
18  >
19
20 \paper {
21         \translator {
22                 \ScoreContext
23                 \accepts StaffContainer;
24                 \denies Staff;
25         }
26         \translator {
27                 \type Engraver_group_engraver;
28                 \consists "Axis_group_engraver";
29                 \accepts "Staff";
30                 \name StaffContainer;
31
32         }
33         \translator {
34                 \StaffContext
35                 \remove Axis_group_engraver;
36         }
37 }
38 }
39