X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Ftest%2Fhara-kiri-switch.ly;h=9dbdaef6aa3f05a9dfd35f37a93e64ad5e5c1dec;hb=e1ef1410eeca1c9470c186da306e1f87b1b1a600;hp=72b338371b33157ddb7c23905391a0c1bf5a7db1;hpb=b638d530ac5a32a832646cdd2b680ce52d0764f0;p=lilypond.git diff --git a/input/test/hara-kiri-switch.ly b/input/test/hara-kiri-switch.ly index 72b338371b..9dbdaef6aa 100644 --- a/input/test/hara-kiri-switch.ly +++ b/input/test/hara-kiri-switch.ly @@ -1,19 +1,24 @@ -\version "1.3.59"; -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.7.6" + + +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,12 +46,13 @@ grandstaff = \context GrandStaff = one < \score{ \grandstaff \paper{ - linewidth=80.0\mm; + linewidth=80.0\mm - \translator { \VoiceContext noAutoBeaming = "1"; } + \translator { \VoiceContext autoBeaming = ##f } \translator { \HaraKiriStaffContext } - \translator { \OrchestralScoreContext skipBars = 1; } + \translator { \OrchestralScoreContext skipBars = ##t } } } +%% new-chords-done %%