]> git.donarmstrong.com Git - lilypond.git/blob - input/test/staff-container.ly
*** empty log message ***
[lilypond.git] / input / test / staff-container.ly
1 \version "2.2.0"
2
3 \header {
4
5     texidoc = "
6
7 In this preliminary test of a modern score, the staff lines are washed
8 out temporarily. This is done by making a tuned @code{StaffContainer},
9 which @code{\skip}s some notes without printing lines either and
10 creates a @code{\new Staff} then in order to create the lines again.
11 (Be careful if you use this; it has been done by splitting the
12 grouping @code{Axis_group_engraver} and creating functionality into 
13 separate contexts, but the clefs and time signatures may not do
14 what you would expect.)
15
16     "
17
18       }
19
20
21
22 \score  {
23     \notes \relative c'' <<
24         \new StaffContainer {
25
26             %% need << >>, otherwise we descend to the voice inside SA  
27             << \new Staff { c4 c4 } >>
28             \skip 4  % s4 would create staff.
29             
30             << \new Staff { b4 b4 } >> 
31         }
32         \new StaffContainer {
33             \skip 4
34             << \context Staff { e d f \bar ":|" } >>
35             \skip 4
36         }
37     >>
38
39     \paper {
40         \context {
41             \ScoreContext
42             \accepts StaffContainer
43             \denies Staff
44         }
45         \context {
46             \type Engraver_group_engraver
47             \consists Clef_engraver
48             \consists Time_signature_engraver
49             \consists Separating_line_group_engraver
50             \consistsend "Axis_group_engraver"
51             \accepts "Staff"
52             
53             \name StaffContainer
54         }
55         \context {
56             \StaffContext
57             \remove Axis_group_engraver
58             \remove Separating_line_group_engraver
59             \remove Clef_engraver
60             \remove Time_signature_engraver
61         }
62         raggedright=##t
63     }
64 }
65
66