I think the fastest way to learn this, is to study the templates available: https://lilypond.org/doc/v2.22/Documentation/snippets/templates
Choose one what looks like you want, copy paste it into your .ly
and then change small things % in front of a line, so you see what happens.
and keep what you want. Eef
\new
StaffGroup \with { systemStartDelimiter =
#'SystemStartBrace }
<<
\new Staff
<<
\set Staff.instrumentName = "Violin"
\set Staff.midiInstrument = #"violin"
\context Staff = "1" <<
\mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
\context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne }
>> \context Staff = "2" <<
\mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
\context Voice = "PartPOneVoiceThree" { \voiceOne \PartPOneVoiceThree }
\context Voice = "PartPOneVoiceTwo" { \voiceTwo \PartPOneVoiceTwo }
\context Voice = "PartPOneVoiceFour" { \voiceThree \PartPOneVoiceFour }
>>
>>
>>
|