]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/cross-staff-stems.ly
Doc-es: ugly trick to avoid duplicate node.
[lilypond.git] / Documentation / snippets / cross-staff-stems.ly
index dc9c3b8e838941955eca21801e81d90bf5a74646..cfcc9ef0d0394d657e58621933c1579ee6bb1906 100644 (file)
@@ -4,14 +4,17 @@
 % and then run scripts/auxiliar/makelsr.py
 %
 % This file is in the public domain.
-%% Note: this file works from version 2.15.42
-\version "2.15.42"
+%% Note: this file works from version 2.16.0
+\version "2.16.0"
 
 \header {
   lsrtags = "staff-notation, tweaks-and-overrides, contexts-and-engravers"
-  texidoc = "This file demonstrates a scheme engraver that
-connects stems across staves.  The stem length need not be specified, as
-the code takes care of the variable distance between noteheads and staves."
+  texidoc = "
+This snippet shows the use of the @code{Span_stem_engraver}
+and @code{\\crossStaff} to connect stems across staves automatically.
+The stem length need not be specified, as the variable distance
+between noteheads and staves is calculated automatically.
+"
   doctitle = "Cross staff stems"
 } % begin verbatim
 
@@ -27,12 +30,15 @@ the code takes care of the variable distance between noteheads and staves."
   \new PianoStaff <<
     \new Staff {
       <b d'>4 r d'16\> e'8. g8 r\!
+      e'8 f' g'4 e'2
     }
-   \new Staff {
-     \clef bass
+    \new Staff {
+      \clef bass
       \voiceOne
       \autoBeamOff
       \crossStaff { <e g>4 e, g16 a8. c8} d
+      \autoBeamOn
+      g8 f g4 c2
     }
   >>
 }