]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/hara-kiri-switch.ly
patch::: 1.5.4.jcn3
[lilypond.git] / input / test / hara-kiri-switch.ly
index ae042f764da70318d443f675ea0cf5094b077c5f..f738d1048c9bb9e5be2c95952e08848bc06c6755 100644 (file)
@@ -1,19 +1,24 @@
-\version "1.3.93";
 
-voiceOne = \notes \relative c'' {
+\header {
+texidoc = "some instruments (notably: cello and double bass) are alternatively written on one and two staves. This is the way to do it:"
+}
+\version "1.3.146"
+
+
+voiceOne =  \notes \relative c'' {
        a1 a a
        a2 a2
        a2 a8 a a a
 }
 
-staffOne = \context Staff = one <
+staffOne =  \context Staff = one <
        \notes \context Voice=one < 
                \voiceOne
        >
 >
 
-voiceTwo = \notes \relative c' {
-       % we must have a Thread context before we can switch staffs
+voiceTwo =  \notes \relative c' {
+       % we must have a Thread context before we can switch staves
        % in this case, the notes before the switching  will do that 
        % implicitely
        \context Thread
@@ -26,14 +31,14 @@ voiceTwo = \notes \relative c' {
        c8 c c c
 }
 
-staffTwo = \context Staff = two <
+staffTwo =  \context Staff = two <
        % notes must go to Staff context: we want to switch Staff translators
        %\notes \context Voice=one < 
                \voiceTwo
        %>
 >
 
-grandstaff = \context GrandStaff = one <
+grandstaff =  \context GrandStaff = one <
        \staffOne
        \staffTwo
 >
@@ -41,11 +46,11 @@ grandstaff = \context GrandStaff = one <
 \score{
        \grandstaff
        \paper{
-               linewidth=80.0\mm;
+               linewidth=80.0\mm
 
-               \translator { \VoiceContext noAutoBeaming = "1"; }
+               \translator { \VoiceContext noAutoBeaming = ##t }
                \translator { \HaraKiriStaffContext }
-               \translator { \OrchestralScoreContext skipBars = 1; }
+               \translator { \OrchestralScoreContext skipBars = ##t }
        }
 }