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