\version "2.19.81"


\paper {
  #(set-paper-size "a4" 'portrait)
  top-margin = 1 \cm
  bottom-margin = 1 \cm
  left-margin = 1.75 \cm
  
  top-system-spacing =
  #'((basic-distance . 15 )
  (minimum-distance . 15 )
  (padding . 0 )
  (stretchability . 0))
  
  last-bottom-spacing =
  #'((basic-distance . 15 )
  (minimum-distance . 15 )
  (padding . 0 )
  (stretchability . 0))
  
  %systems-per-page = 2
  
  print-page-number = ##t
  oddHeaderMarkup = \markup { \on-the-fly #not-first-page "(penrose)" }
  evenHeaderMarkup = \markup { \on-the-fly #not-first-page "(penrose)" }
  oddFooterMarkup = \markup { \fill-line {
    \on-the-fly #not-first-page 
    \concat {
      "-"
      \fontsize #1.5
      \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string
      "-"}}}
  evenFooterMarkup = \markup { \fill-line {
    \on-the-fly #not-first-page 
    \concat { 
      "-" 
      \fontsize #1.5
      \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string
      "-"}}}
}

\header {
  title = \markup { \italic {penrose}}
  subtitle = \markup { \normal-text { from \italic{a history of the domino the problem}}}
  composer = \markup \right-column {"michael winter" "(schloss solitude, stuttgart and calle monclova 62, mexico city; 2018-19)"}
  tagline = ""
} 

#(set-global-staff-size 11)

\layout {
  indent = 0.0\cm
  line-width = 17\cm 
  %ragged-last = ##t
  
  \context {
    \Score
      %\remove "Mark_engraver" 
      %\override BarNumber.extra-offset = #'(0 . 4)
      \override BarNumber.stencil = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
      \override Stem.stemlet-length = #0.75
      %\override DynamicTextSpanner.style = #'none
  }
  \context {
    \Staff
    
    \override VerticalAxisGroup.staff-staff-spacing =
      #'((basic-distance . 13 )
      (minimum-distance . 13 )
      (padding . 0 )
      (stretchability . 0))
      
      %\consists "Mark_engraver"
      %\remove "Dot_column_engraver"
      %\remove "Time_signature_engraver"
      %\remove "Clef_engraver"
      %\override StaffSymbol.line-count = #1
      %\override NoteHead.no-ledgers = ##t
      %\override RestCollision.positioning-done = #merge-rests-on-positioning
      \override RehearsalMark.X-offset = #1
      \override RehearsalMark.Y-offset = #4
      \override VerticalAxisGroup.default-staff-staff-spacing =
      #'((basic-distance . 16 )
      (minimum-distance . 16 )
      (padding . 0 )
      (stretchability . 0))
      
      \override TimeSignature.font-size = #2
      \override TimeSignature.break-align-symbol = #'clef
      \override TimeSignature.X-offset =
        #ly:self-alignment-interface::x-aligned-on-self
      \override TimeSignature.self-alignment-X = #LEFT
      %\override TimeSignature.after-line-breaking =
      %  #shift-right-at-line-begin
      \override TimeSignature.Y-offset = #9
      \override TimeSignature.extra-offset = #'(2 . 0)
  }
  \context {
    \StaffGroup
    \name "SemiStaffGroup"
    \consists "Span_bar_engraver"
    \override SpanBar.stencil =
      #(lambda (grob) 
        (if (string=? (ly:grob-property grob 'glyph-name) "|")
            (set! (ly:grob-property grob 'glyph-name) ""))
        (ly:span-bar::print grob))
  }
  \context {
    \Score
    \accepts SemiStaffGroup
  }
}

\midi { }


%showLastLength = R1*128
\score{
\new Score 
  <<
    \new SemiStaffGroup {
    <<
    \new Staff \with {
      instrumentName = "1"
      shortInstrumentName = "1"
      midiInstrument = #"flute"
    }
    <<
      \numericTimeSignature \clef "treble^8" \include "includes/penrose_part_6.ly"
    >>
    
    \new Staff \with {
      instrumentName = "2"
      shortInstrumentName = "2"
      midiInstrument = #"clarinet"
      \remove "Time_signature_engraver"
    }
    <<
      \numericTimeSignature \include "includes/penrose_part_5.ly"
    >>
    
    \new Staff \with {
      instrumentName = "3"
      shortInstrumentName = "3"
      midiInstrument = #"clarinet"
      \remove "Time_signature_engraver"
    }
    <<
      \numericTimeSignature \include "includes/penrose_part_4.ly"
    >>
    
    \new Staff \with {
      instrumentName = "4"
      shortInstrumentName = "4"
      midiInstrument = #"cello"
      \remove "Time_signature_engraver"
    }
    <<
      \numericTimeSignature \clef alto \include "includes/penrose_part_3.ly"
    >>
    
     \new Staff \with {
      instrumentName = "5"
      shortInstrumentName = "5"
      midiInstrument = #"cello"
      \remove "Time_signature_engraver"
    }
    <<
      \numericTimeSignature \clef bass \include "includes/penrose_part_2.ly"
    >>
    
     \new Staff \with {
      instrumentName = "6"
      shortInstrumentName = "6"
      midiInstrument = #"cello"
      \remove "Time_signature_engraver"
    }
    <<
      \numericTimeSignature \clef "bass_8" \include "includes/penrose_part_1.ly"
    >>
    >>
    }
  >>
  
  \layout{}
  \midi{}
}