X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fcross-staff-stems.ly;h=448187f8ec30db1f4f12977acaa1704bde004c57;hb=e0808cc5f4890c5f8f03ed1be48fc911627afea4;hp=dc9c3b8e838941955eca21801e81d90bf5a74646;hpb=8247813bc580a90f7838846dc38aad5d49ac9d9d;p=lilypond.git diff --git a/Documentation/snippets/cross-staff-stems.ly b/Documentation/snippets/cross-staff-stems.ly index dc9c3b8e83..448187f8ec 100644 --- a/Documentation/snippets/cross-staff-stems.ly +++ b/Documentation/snippets/cross-staff-stems.ly @@ -1,21 +1,25 @@ -% DO NOT EDIT this file manually; it is automatically -% generated from Documentation/snippets/new -% Make any changes in Documentation/snippets/new/ -% 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" +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.di.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.18.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." + lsrtags = "contexts-and-engravers, staff-notation, tweaks-and-overrides" + + 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 - \layout { \context { \PianoStaff @@ -27,12 +31,15 @@ the code takes care of the variable distance between noteheads and staves." \new PianoStaff << \new Staff { 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 { 4 e, g16 a8. c8} d + \autoBeamOn + g8 f g4 c2 } >> }