]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/cross-staff-stems.ly
dc9c3b8e838941955eca21801e81d90bf5a74646
[lilypond.git] / Documentation / snippets / cross-staff-stems.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.15.42
8 \version "2.15.42"
9
10 \header {
11   lsrtags = "staff-notation, tweaks-and-overrides, contexts-and-engravers"
12   texidoc = "This file demonstrates a scheme engraver that
13 connects stems across staves.  The stem length need not be specified, as
14 the code takes care of the variable distance between noteheads and staves."
15   doctitle = "Cross staff stems"
16 } % begin verbatim
17
18
19 \layout {
20   \context {
21     \PianoStaff
22     \consists #Span_stem_engraver
23   }
24 }
25
26 {
27   \new PianoStaff <<
28     \new Staff {
29       <b d'>4 r d'16\> e'8. g8 r\!
30     }
31    \new Staff {
32      \clef bass
33       \voiceOne
34       \autoBeamOff
35       \crossStaff { <e g>4 e, g16 a8. c8} d
36     }
37   >>
38 }