%% Generated by lilypond-book.py %% Options: [alt=[image of music],printfilename,indent=0\mm,texidoc,line-width=160\mm] \include "lilypond-book-preamble.ly" % **************************************************************** % Start cut-&-pastable-section % **************************************************************** \paper { #(define dump-extents #t) indent = 0\mm line-width = 160\mm force-assignment = #"" line-width = #(- line-width (* mm 3.000000)) } \layout { } % **************************************************************** % ly snippet: % **************************************************************** \sourcefilename "out-www/43d-MultiStaff-StaffChange.ly" \sourcefileline 0 \version "2.12.2" % automatically converted from /home/lilydev/vc/gub/target/linux-x86/src/lilypond-localhost--home-lilydev-vc-lilypond-master/input/regression/musicxml/43d-MultiStaff-StaffChange.xml \header { texidoc = "Staff changes in a piano staff. The voice from the second staff has some notes/chords on the first staff. The final two chords have some notes on the first, some on the second staff." } \layout { \context { \Score skipBars = ##t autoBeaming = ##f } } PartPOneVoiceOne = \relative c' { \clef "treble" \key c \major \time 4/4 s1 | % 2 R1 \bar "|." } PartPOneVoiceTwo = \relative a { \clef "bass" \key c \major \time 4/4 a8 [ \change Staff="1" e'8 \change Staff="2" a,8 \change Staff="1" e'8 ] c'8 [ e,8 \change Staff="2" a,8 b'8 ] | % 2 <c,, e g c>8 [ \change Staff="1" <c' e g>8 \change Staff="2" <c, e g c>8 \change Staff="2" <g' c e g>8 ] \change Staff="2" r2 \bar "|." } % The score definition \new PianoStaff << \context Staff = "1" << \context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne } >> \context Staff = "2" << \context Voice = "PartPOneVoiceTwo" { \PartPOneVoiceTwo } >> >> % **************************************************************** % end ly snippet % ****************************************************************