\version "2.24.4"

global = {
        \set Score.extraNatural = ##f
	\key d \minor
	\clef "G_8"
	\time 3/4
	\set Staff.connectArpeggios = ##t
}

\include "Ständchen/score/guitar1.ly"
\include "Ständchen/score/guitar2.ly"
\include "Ständchen/score/guitar3.ly"
\include "Ständchen/score/dynamics.ly"

\bookpart {
 \paper {
%	page-count = #3
%	systems-per-page = #4
%	system-count = #14
%	min-systems-per-page = #4

	top-margin = 8 \mm
	bottom-margin = 8 \mm
	left-margin = 18 \mm
	right-margin = 18 \mm

	top-system-spacing =
                #'((basic-distance . 8)
                   (minimum-distance . 6)
                   (padding . 0))
%                   (stretchability . 4))

	system-system-spacing =
	    #'((basic-distance . 14)
	       (minimum-distance . 10)
	       (padding . 4)
	       (stretchability . 4))

	ragged-last-bottom = ##f
	ragged-bottom = ##f
 }

\header {

  tagline = \markup \center-column {
        \fontsize #1.0
        \null
        { \line { Steve Shorter (2025). \epsfile #X #10 #'"by-sa.eps" }}
        "Music engraving by LilyPond 2.24.4—www.lilypond.org"
        \null
    }

  title = \markup \center-column {
		\bold
		\fontsize #3.0
		{
		"Ständchen"
		\null
		}
  }

  composer = \markup \center-column {
		\fontsize #1.0
		{
		"Franz Schubert (1797 - 1828)"
		}
	}

  arranger = \markup \center-column {
	 	\fontsize #1.0
		{
		"Steve Shorter (2025)"
		\null
		}
	}
 }

 \score {
    \new GrandStaff \with {
            \override StaffGrouper.staff-staff-spacing =
                #'((basic-distance . 8)
                   (minimum-distance . 5)
                   (padding . 2))
    }
    <<
	\set GrandStaff.instrumentName =
		\markup {
			\override #'(font-family . "Sans")
			\abs-fontsize #12.0 \bold "Guitar  " 
		}

	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitarone >>
	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitartwo >>
	\new Dynamics << \dynamics >>
	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitarthree >>
    >>

    \layout {
        #(layout-set-staff-size 20)
        \context {
           \Score
%             \override NonMusicalPaperColumn #'line-break-permission = ##f
%            \override NonMusicalPaperColumn #'page-break-permission = ##f
       }
    }
  }
}
