-\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
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
>
\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 }
}
}