lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interspersed Staffs and ChoirStaffs


From: Schneidy
Subject: Re: Interspersed Staffs and ChoirStaffs
Date: Thu, 10 Apr 2014 01:27:53 -0700 (PDT)

Michael Welsh Duggan-2 wrote
> I'm trying to produce a score which contains choir staffs interspersed
> with solo staffs.  I've tried the included, but my naive attempt isn't
> working.

Hi Michael,
Try this :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.18.2"

\score {
  \new ChoirStaff <<
    \new Staff = "x" { 
      \new Voice = "a" { 
        a'4 a' a' a' | 
        a'4 a' a' a' |
        \break
        % solo part:
        c'4 c' c' c' |
        c'4 c' c' c' |
        \break
        a'4 a' a' a' | 
        a'4 a' a' a' |
        \break
        % solo part:
        c'4 c' c' c' |
        c'4 c' c' c' |
        \break
        a'4 a' a' a' | 
        a'4 a' a' a' |
      } 
    }
    \new Staff = "y" { 
      \new Voice = "b" { 
        b'4 b' b' b' | 
        b'4 b' b' b'
        R1*2
        b'4 b' b' b' | 
        b'4 b' b' b' |
        R1*2
        b'4 b' b' b' | 
        b'4 b' b' b' |
      } 
    }
  >>
  \layout {
    \context { 
      \Staff
      \RemoveEmptyStaves 
    }
    \context {
      \Score
      % Remove all-rest staves also in the first system
      \override VerticalAxisGroup.remove-first = ##t
      % If only one non-empty staff in a system exists, still print the
starting bar
      \override SystemStartBar.collapse-height = #1
    }
    \context {
      \ChoirStaff 
      % If only one non-empty staff in a system exists, still print the
bracket
      \override SystemStartBracket.collapse-height = #1
      \override SystemStartBar.collapse-height = #1
    }
  }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

HTH,
~Pierre




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Interspersed-Staffs-and-ChoirStaffs-tp161441p161444.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]