]> git.donarmstrong.com Git - lilypond.git/blob - input/test/stem-cross-staff.ly
add version everywhere.
[lilypond.git] / input / test / stem-cross-staff.ly
1 \version "1.7.7"
2
3 \header {
4     texidoc = "Cross staff stems
5
6 Unfortunately, there is no support for putting chords across staves.
7 You can get this result by increasing the length of the stem in the
8 lower stave so it reaches the stem in the upper stave, or vice versa.
9
10 @cindex  Cross staff stems
11 @cindex Stems, cross staff
12
13 "
14 }
15
16 stemExtend = \once \property Voice.Stem \override #'length  = #22
17
18 %% following reqs 1.7.1 or better.
19 noFlag = \once \property Voice.Stem \override #'flag-style = #'no-flag
20
21
22 \score { \notes 
23     \context  PianoStaff
24         < \context Staff = up   {
25             \stemDown
26             \stemExtend
27             f'4
28             \stemExtend
29             \noFlag
30             f'8 }
31           \context Staff = down {
32               \clef bass
33               a4 a8 }
34           >
35
36     \paper { linewidth = -1.0 }
37 }
38 %% new-chords-done %%