release commit
[lilypond.git] / input / test / temporary-stave.ly
blobfc1e82426276123eee616677fdbbe72ab2f3ca7f
2 \version "2.1.7"
4 \header {
6 texidoc= "
7 An additional stave can be typeset in the middle of a score line.
8 A new context type is created to avoid printing time and key
9 signatures and clef at the beginning of the temporary stave.
13 \score {
14 \notes {
15 \relative c' {
16 \context Staff = One { c4 d e f }
18 {c d e f | c d e f | c c c c | c c c c }
19 \context TemporaryStaff = Two { c4 c8 d e4 f | c d e f |
20 c c c c | c c c8 b c b |}
22 c4 d e f |
25 \paper {
26 \translator {
27 \ScoreContext
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"
34 \translator {
35 \StaffContext
36 \name "TemporaryStaff"
37 \alias "Staff"
38 \remove "Clef_engraver"
39 \remove "Time_signature_engraver"
40 \remove "Key_engraver"