]> git.donarmstrong.com Git - lilypond.git/blob - input/test/ossia.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / input / test / ossia.ly
1 \header { texidoc = "A temporary ossia in an instrumental part for
2     just a few bars on a separate staff. Here is an example using
3     proper short staffs. A simpler solution is to instantiate a full
4     staff, and let @code{RemoveEmptyStaffContext} take out the unused parts.
5
6    Both solutions are demonstrated here.
7 " }
8
9 \version "2.1.26"
10
11 \score {
12     \notes\relative c''
13     \new StaffGroup \with {
14         \remove "System_start_delimiter_engraver"
15         \override SpanBar #'glyph = #":"
16     } <<
17
18         %% solution 1
19         { c1 c1
20         <<
21             { c1 c1 } 
22             \new Staff \with {
23                 \remove "Time_signature_engraver"
24             } {
25                 c,4^"ossia" es f fis g1
26             }
27         >>
28           c1 \break c c }
29
30         %% solution 2
31         \new Staff { R1*2 c,4^"ossia" es f fis g1 R1 * 3 }
32     >>
33     
34
35     \paper {
36         raggedright= ##t
37         \translator {\RemoveEmptyStaffContext}
38         \translator {
39             \ScoreContext
40             \remove System_start_delimiter_engraver
41             }
42     }
43 }
44