]> git.donarmstrong.com Git - lilypond.git/blob - input/test/temporary-stave.ly
5dd7d1bf58ed8bfcf2899632ca221d6789ce27c0
[lilypond.git] / input / test / temporary-stave.ly
1
2 \version "2.9.16"
3
4 \header {
5
6 texidoc= "
7 An additional stave can be typeset in the middle of a score line. 
8 A new context type is created for the temporary staff to avoid printing 
9 time and key signatures and clef at the beginning of the extra stave.
10 "
11
12
13 \score {
14    {
15     \relative c' {
16       \new Staff = One { c4 d e f }
17       <<
18         {c d e f | c d e f | c c c c | c c c c }
19         \new TemporaryStaff = Two { c4 c8 d e4 f | c d e f |
20           c c c c | c c c8 b c b |}
21       >>
22       c4 d e f |
23     }
24   }
25   \layout {
26     \context {
27       \Score
28       \consists Span_bar_engraver
29       % Avoid a vertical line at the beginning of the system:
30       \remove System_start_delimiter_engraver
31       % Incorporate the new context in the hierarchy
32       \accepts "TemporaryStaff"
33     }
34     \context {
35       \Staff
36       \name "TemporaryStaff"
37       \alias "Staff"
38       \remove "Clef_engraver"
39       \remove "Time_signature_engraver"
40       \remove "Key_engraver"
41     }
42   }
43 }
44