]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/cross-staff-stems.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / cross-staff-stems.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "contexts-and-engravers, staff-notation, tweaks-and-overrides"
11
12   texidoc = "
13 This snippet shows the use of the @code{Span_stem_engraver} and
14 @code{\\crossStaff} to connect stems across staves automatically.
15
16 The stem length need not be specified, as the variable distance between
17 noteheads and staves is calculated automatically.
18
19 "
20   doctitle = "Cross staff stems"
21 } % begin verbatim
22
23 \layout {
24   \context {
25     \PianoStaff
26     \consists #Span_stem_engraver
27   }
28 }
29
30 {
31   \new PianoStaff <<
32     \new Staff {
33       <b d'>4 r d'16\> e'8. g8 r\!
34       e'8 f' g'4 e'2
35     }
36     \new Staff {
37       \clef bass
38       \voiceOne
39       \autoBeamOff
40       \crossStaff { <e g>4 e, g16 a8. c8} d
41       \autoBeamOn
42       g8 f g4 c2
43     }
44   >>
45 }