\version "2.18.0"

\include "stabat_mater.instr_ily"
\include "stabat_mater_08b.ily"
\include "clefd.ily"
nameVia = {
  \set Staff.instrumentName = \markup {
    \center-column {
      "Violin unis"
      \vspace #-0.3 \small "con"
      \vspace #-0.2
      "Oboi di Ripieno"
    }
  }
  \set Staff.shortInstrumentName = #"V et O "
}
\include "stabat_mater_small.ily"
PS = {
  s4.*26 |
  \pageBreak
}
\include "stabat_mater.staff_ily"

\score {
  \header { piece = \hdraj }
  <<
    \scorePre
    \scoreLcl
%    \scoreTimeSig
%{
    \new GrandStaff <<
      \staffOba
      \staffObb
    >>
%}
    \new GrandStaff
    \with {
      \override StaffGrouper.staff-staff-spacing.basic-distance = #0
      \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #8
    }
    <<
      \staffVia
%      \staffVib
      \staffVa
    >>
% }
%    \new ChoirStaff
%    \with {
%      \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #8
%    }
%    <<
%      \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"
    }
  }
}

