\version "2.24.4"

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

\include "II/gtr1/dynamics.ly"
\include "II/gtr1/guitar1.ly"

\bookpart {
 \paper {
	page-count = #2
%	systems-per-page = #4
	system-count = #20
%	min-systems-per-page = #4
%	max-systems-per-page = #10

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

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

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

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

\header {

 piece = "KV 525"

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

  subsubtitle = \markup \center-column {
		\fontsize #5.0
		\bold
		{
		  "II"
		}
	}

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

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

\tocItem \markup \column {
         \fontsize #-2.0
        \line { \hspace #10 "Guitar 1" }
     }

 \score {
    \new StaffGroup \with {
            \override StaffGrouper.staff-staff-spacing =
                #'((basic-distance . 12)
                   (minimum-distance . 8)
                   (padding . 2))
    }
    <<
	\new Staff \with { \consists "Span_arpeggio_engraver" }
                   << \global \guitarone >>
	\new Dynamics \dynamics
    >>

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