]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/hara-kiri-switch.ly
release: 1.5.3
[lilypond.git] / input / test / hara-kiri-switch.ly
index 8680850bb226055fd0a9db7a7e82aef5db92fe2a..fd83125d12c3101ae8581b3bcb4590494948090d 100644 (file)
@@ -1,18 +1,23 @@
-\version "1.3.5";
 
-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' {
+voiceTwo =  \notes \relative c' {
        % we must have a Thread context before we can switch staffs
        % in this case, the notes before the switching  will do that 
        % implicitely
@@ -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;
-               castingalgorithm = \Wordwrap;
-               \translator { \VoiceContext noAutoBeaming = "1"; }
+               linewidth=80.0\mm
+
+               \translator { \VoiceContext noAutoBeaming = ##t }
                \translator { \HaraKiriStaffContext }
-               \translator { \OrchestralScoreContext skipBars = 1; }
+               \translator { \OrchestralScoreContext skipBars = ##t }
        }
 }