\version "2.24.4"

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

\include "I/score/dynamicsa.ly"
\include "I/score/dynamicsb.ly"
\include "I/score/dynamicsc.ly"
\include "I/score/guitar1.ly"
\include "I/score/guitar2.ly"
\include "I/score/guitar3.ly"
\include "I/score/guitar4.ly"

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

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

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

	system-system-spacing =
	    #'((basic-distance . 16)
	       (minimum-distance . 8)
	       (padding . 4)
	       (stretchability . 4))

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

\header {

%  piece = "KV 525" 

  title = \markup \center-column {
		\italic
		\bold
		\fontsize #3.0
		{
		"Eine kleine Nachtmusik"
		\null
		}
    }

%  subtitle = \markup \center-column {
%		\fontsize #1.0
%		{
%		"KV 525"
%		\null
%		}
%	}

  subsubtitle = \markup \center-column {
		\fontsize #7.0
		\bold
		{
		  "I"
		}
	}

  composer = \markup \center-column {
		\fontsize #1.0
		{
		"Wolfgang Amadeus Mozart (1756 - 1791)" 
		}
	}

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

 \tocItem \markup \column {
          \fontsize #1.6
          \line { \hspace #42 \bold \sans \italic "Allegro" }
  %        \null
     }

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

	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitarone >>
	\new Dynamics \dynamicsa
	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitartwo >>
	\new Dynamics \dynamicsb
	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitarthree >>
	\new Dynamics \dynamicsc
	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitarfour >>
    >>

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