]> git.donarmstrong.com Git - lilypond.git/blob - input/test/staff-container.ly
* buildscripts/mf-to-table.py (base): break table every three
[lilypond.git] / input / test / staff-container.ly
1 \version "1.7.18"
2
3 \header { texidoc = "@cindex Staff Container
4 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 \score  {
11  \notes <
12         \context StaffContainer = SA { \property StaffContainer.StaffSymbol \set
13           #'staff-space = #0.8
14           \context Staff {        c4 c4 } }
15         \context StaffContainer =SB { \context Staff { d f  } }
16  >
17
18 \paper {
19         \translator {
20                 \ScoreContext
21                 \accepts StaffContainer
22                 \denies Staff
23         }
24         \translator {
25                 \type Engraver_group_engraver
26                 \consists "Axis_group_engraver"
27                 \accepts "Staff"
28                 \name StaffContainer
29
30         }
31         \translator {
32                 \StaffContext
33                 \remove Axis_group_engraver
34         }
35         raggedright=##t
36 }
37 }
38
39