]> git.donarmstrong.com Git - lilypond.git/blob - input/test/stem-cross-staff.ly
6ef4882fc4301ec67c8fb767dea43888bd69ab05
[lilypond.git] / input / test / stem-cross-staff.ly
1 \header {
2     texidoc = "Cross staff stems
3
4 Unfortunately, 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 @cindex  Cross staff stems
9 @cindex Stems, cross staff
10
11 "
12 }
13
14 stemExtend = \once \property Voice.Stem \override #'length  = #22
15
16 %% following reqs 1.7.1 or better.
17 noFlag = \once \property Voice.Stem \override #'flag-style = #'no-flag
18
19
20 \score { \notes 
21     \context  PianoStaff
22         < \context Staff = up   {
23             \stemDown
24             \stemExtend
25             f'4
26             \stemExtend
27             \noFlag
28             f'8 }
29           \context Staff = down {
30               \clef bass
31               a4 a8 }
32           >
33
34     \paper { linewidth = -1.0 }
35 }
36 %% new-chords-done %%