]> git.donarmstrong.com Git - lilypond.git/blob - input/test/stem-cross-staff.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / input / test / stem-cross-staff.ly
1 \version "2.1.26"
2
3 \header { texidoc = "@cindex Stem Cross Staff
4 There is no support for putting chords across staves.
5 You can get this result by increasing the length of the stem in the
6 lower stave so it reaches the stem in the upper stave, or vice versa. "
7 }
8
9 stemExtend = \once \override Stem  #'length = #22
10
11 %% following reqs 1.7.1 or better.
12 noFlag = \once \override Stem  #'flag-style = #'no-flag
13
14
15 \score { \notes 
16     \context  PianoStaff
17         << \new Staff   {
18             \stemDown
19             \stemExtend
20             f'4
21             \stemExtend
22             \noFlag
23             f'8 }
24           \new Staff {
25               \clef bass
26               a4 a8 }
27           >>
28
29     \paper { raggedright = ##t}
30 }
31