Thanks Lukas, I would never have figured that out.

------ Origineel bericht ------
Van: "Lukas-Fabian Moser" <l...@gmx.de>
Aan: "E Appeldoorn" <ursus.k...@gmail.com>; "Lilypond" <lilypond-user@gnu.org>
Verzonden: 17-2-2022 22:08:09
Onderwerp: Re: Splitting voices

Hi Erik,

I have a score consisting of 5 strings. Near the end all instrument voices (except the bass) split into two. The top voice being a solo, and the bottom one the rest. I have managed this for one voice, but can't figure out how to add second violin, viola, and cello in the same manner, then adding the single line bass below that. Here's what I created. All voices would need to be in the main group, Any help would be much appreciated.
How about:

\version "2.22.1"

\layout {
  indent = 20
  short-indent = 15
  \context {
    \Score
    \RemoveAllEmptyStaves
  }
}

\new StaffGroup <<
  \new GrandStaff \with {
    instrumentName = "Vln. I"
    shortInstrumentName = "Vln. I"
  }
  <<
    \new Staff \with {
      shortInstrumentName = solo
    } \relative {
      s1*6
      c'1 d e d
    }
    \new Staff \relative {
      c''1 | c | b | a | g | f | \break
      \set Staff.shortInstrumentName = tutti
      g | f | e | d
    }
  >>

  \new GrandStaff \with {
    instrumentName = "Vln. II"
    shortInstrumentName = "Vln. II"
  }
  <<
    \new Staff \with {
      shortInstrumentName = solo
    } \relative {
      s1*6
      c'1 d e d
    }
    \new Staff \relative {
      c''1 | c | b | a | g | f | \break
      \set Staff.shortInstrumentName = tutti
      g | f | e | d
    }
  >>

  \new GrandStaff \with {
    instrumentName = "Vla"
    shortInstrumentName = "Vla"
  }
  <<
    \new Staff \with {
      \clef alto
      shortInstrumentName = solo
    } \relative {
      s1*6
      c'1 d e d
    }
    \new Staff \with { \clef alto } \relative {
      c''1 | c | b | a | g | f | \break
      \set Staff.shortInstrumentName = tutti
      g | f | e | d
    }
  >>
  \new Staff \with {
    \clef bass
    instrumentName = "Bassi"
    shortInstrumentName = "Vc/Cb"
  }
  \relative {
    c1 d e d c d e d c d
  }
>>

Lukas

Reply via email to