Ex:
\version "2.18.2"
global= {
\time 4/4
\key c \major
\tempo "Allegro"
}
Violinone = \new Voice {
\relative c''{
\set Staff.instrumentName = #"Violin 1 "
c2 d e1
\bar "|."
}
}
Violintwo = \new Voice {
\relative c''{
\set Staff.instrumentName = #"Violin 2 "
g2 f e1
\bar "|."
}
}
Viola = \new Voice {
\relative c' {
\set Staff.instrumentName = #"Viola "
\clef alto
e2 d c1
\bar "|."
}
}
Cello = \new Voice {
\relative c' {
\set Staff.instrumentName = #"Cello "
\clef bass
c2 b a1
\bar "|."
}
}
\score {
\new StaffGroup <<
\new Staff { << \global \Violinone >> }
\new Staff { << \global \Violintwo>> }
\new Staff { << \global \Viola>> }
\new Staff { << \global \Cello>> }
>>
\layout { }
\midi { }
}