\version "2.18.0"

\include "stabat_mater.instr_ily"
\include "stabat_mater_05b.ily"
\include "clefs.ily"
\include "stabat_mater.staff_ily"

\score {
  \header { piece = \hdraf }
  <<
    \scorePre
    \scoreLcl
%{
   \new GrandStaff <<
      \staffOba
      \staffObb
    >>
%}
    \new GrandStaff <<
      \staffVia
      \staffVib
      \staffVa
    >>
% }
    \new ChoirStaff <<
      \staffCan
      \lyricsto voiceCan \lyrCan
%      \staffAlt
%      \lyricsto voiceAlt \lyrAlt
%      \staffTen
%      \lyricsto voiceTen \lyrTen
%      \staffBas
%      \lyricsto voiceBas \lyrBas
    >>
%    \new GrandStaff <<
      \staffVc
%      \staffFag
%      \staffBC
%    >>
  >>
  \layout {
    \context {
      \Score
      %\override SpacingSpanner.base-shortest-duration = #(ly:make-moment 2/1)
    }
    \context {
      \Staff
      \RemoveEmptyStaves
      %\override VerticalAxisGroup.remove-first = ##t % this does not work with Ambitus_engraver
      \consists "Ambitus_engraver"
    }
    \context {
      \Voice
      %\consists "Ambitus_engraver"
    }
  }
}
