% !TEX TS-program = Lilypond
\version "2.12.3"

#(set-global-staff-size 11.22)
#(set-default-paper-size "a4" 'landscape)

#(define-markup-command (vorschub layout props amount) (number?)
  (interpret-markup layout props
  (markup #:with-dimensions (cons 0 0) (cons 0 amount) #:null)))

bcr = { \override Voice.NoteHead #'style = #'cross }
bdf = { \override Voice.NoteHead #'style = #'default }
bcc = { \override Voice.NoteHead #'style = #'xcircle }
bdi = { \override Voice.NoteHead #'style = #'diamond }
btr = { \override Voice.NoteHead #'style = #'triangle }

sl = {
	\override NoteHead #'style = #'slash
	\override Stem #'transparent = ##t
}

nsl = {
	\revert NoteHead #'style
	\revert Stem #'transparent
}

flat = \markup { \raise #0.4 \smaller \musicglyph #"accidentals--2" }
sharp = \markup { \raise #0.6 \smaller \musicglyph #"accidentals-2" }
textcodaysym = \markup { \hspace #1 \raise #1.1 \musicglyph #"scripts-coda" }

Global = {
	\override Score.MetronomeMark #'extra-offset = #'( -8.0 . 2.0 )
	\tempo "Medium Swing" 4=160
	\set Score.skipBars = ##t
	\set Score.melismaBusyProperties = #'()
	\numericTimeSignature
	\time 4/4
	\key f \major
	\skip 1
	\bar "|."
}

AltSaxI = \relative c' {
	\set Staff.instrumentName = #"Alto-Sax 1"
	c'2 e
}

AltSaxII = \relative c' {
	\set Staff.instrumentName = #"Alto-Sax 2"
	a'2 c
}

TenorSaxI = \relative c' {
	\set Staff.instrumentName = #"Tenor-Sax 1"
	g'2 bes
}

TenorSaxII = \relative c' {
	\set Staff.instrumentName = #"Tenor-Sax 2"
	e2 g
}

BaritoneSax = \relative c' {
	\set Staff.instrumentName = #"Baritone-Sax"
	c2 e
}

TrumpetI = \relative c' {
	\set Staff.instrumentName = #"Trumpet 1"
	c'2 e
}

TrumpetII = \relative c' {
	\set Staff.instrumentName = #"Trumpet 2"
	a'2 c
}

TrumpetIII = \relative c' {
	\set Staff.instrumentName = #"Trumpet 3"
	g'2 bes
}

TrumpetIV = \relative c' {
	\set Staff.instrumentName = #"Trumpet 4"
	e2 g
}

TromboneI = \relative c {
	\set Staff.instrumentName = #"Trombone 1"
	\clef "bass"
	c'2 e
}

TromboneII = \relative c {
	\set Staff.instrumentName = #"Trombone 2"
	\clef "bass"
	a'2 c
}

TromboneIII = \relative c {
	\set Staff.instrumentName = #"Trombone 3"
	\clef "bass"
	g'2 bes
}

TromboneIV = \relative c {
	\set Staff.instrumentName = #"Trombone 4"
	\clef "bass"
	g'2 c,
}

Harmonies = \chordmode {
	\set chordChanges = ##t
	\set majorSevenSymbol = \markup { \whiteTriangleMarkup 7 }
	c1:7
}

GitHarmony = \relative c' {
	\set Staff.instrumentName = #"Git/Harmony"
	\sl bes'4 bes bes bes \nsl
}

PianoRH = \relative c' {
	\set PianoStaff.instrumentName = #"Piano"
	\sl bes'4 bes bes bes \nsl
}

PianoLH = \relative c {
	\clef "bass"
	\sl d4 d d d \nsl
}

Bass = \relative c {
	\set Staff.instrumentName = #"Bass"
	\clef "bass"
	c4 g' e c
}

Drums = \relative c {
	\set DrumStaff.instrumentName = #"Drums"
	\clef percussion
	\sl c'4 c c c \nsl
}

\book {

\header {
	tagline = ##f
}

\paper { % \paper-Einstellungen für das gesamte book
	print-page-number = ##f
	print-first-page-number = ##f
	first-page-number = #0
	ragged-last-bottom = ##f
	%left-margin = 20\mm
	%line-width = 170\mm
	
	after-title-space = #0.1
	between-system-space = #0.1
	between-system-padding = #0.1
	before-title-space = #0.1
	between-title-space = #0.1
}

\bookpart { % Titelseite
	\markup \abs-fontsize #20 \fill-line {
		\center-column {
			\vorschub #20
			"Widmung"
			\vorschub #5
			% { \override #'(thickness . 3) \draw-line #'(80 . 0) }
			\vorschub #5
			\abs-fontsize #60 \bold "Titel"
			\vorschub #20
			"von"
			\vorschub #10
			"mir"
			\vorschub #5
			% { \override #'(thickness . 3) \draw-line #'(80 . 0) }
			\vorschub #5
			"für den Rest der Welt"
			\vorschub #5
			"© bei mir"
		}
	}
	
	\paper { % \paper-Einstellungen für aktuellen bookpart (Titelseite)
		%left-margin = 20\mm
		%line-width = 170\mm
	}
} % Ende \bookpart "Titelseite"

\bookpart { % Noten

	\header { % \header-Einstellungen für aktuellen bookpart (Noten)
		title = \markup \abs-fontsize #18 { "The Big Test" }
		composer = "Stefan Kreuscher"
		copyright = "© hab ich"
	}
	
	\paper { % \paper-Einstellungen für aktuellen bookpart (Noten)
		oddFooterMarkup = \markup \abs-fontsize #12 \fill-line {
			\bold \fromproperty #'page:page-number-string
		}
	}
	
	\score { % Noten
	<<
		\context StaffGroup = "Saxophone"
		<<
			\context Staff = "Alt-Sax 1"
			<< \Global \AltSaxI >>
			
			\context Staff = "Alt-Sax 2"
			<< \Global \AltSaxII >>
			
			\context Staff = "Tenor-Sax 1"
			<< \Global \TenorSaxI >>
			
			\context Staff = "Tenor-Sax 2"
			<< \Global \TenorSaxII >>
			
			\context Staff = "Baritone-Sax"
			<< \Global \BaritoneSax >>
		>>
		
		\context StaffGroup = "Trumpet"
		<<
			\context Staff = "Trumpet 1" \with {
				\override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 8)
			}
			<< \Global \TrumpetI >>
			
			\context Staff = "Trumpet 2"
			<< \Global \TrumpetII >>
			
			\context Staff = "Trumpet 3"
			<< \Global \TrumpetIII >>
			
			\context Staff = "Trumpet 4"
			<< \Global \TrumpetIV >>
		>>
		
		\context StaffGroup = "Trombone"
		<<
			\context Staff = "Trombone 1" \with {
				\override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 8)
			}
			<< \Global \TromboneI >>
			
			\context Staff = "Trombone 2"
			<< \Global \TromboneII >>
			
			\context Staff = "Trombone 3"
			<< \Global \TromboneIII >>
			
			\context Staff = "Trombone 4"
			<< \Global \TromboneIV >>
		>>
		
		\context ChordNames = "Chords" \with {
				\override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 4)
			}{
			<< \Global \Harmonies >>
		}
		
		%\context StaffGroup = "HarmonyBassPerc"
		%<<
			\context Staff = "Guitar/Harmony"
			<< \Global \GitHarmony >>
			
			\context PianoStaff = Piano
			<<
				\context Staff = "PianoRH" \with {
					\override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 8)
				}
				<< \Global \PianoRH >>
				
				\context Staff = "PianoLH"
				<< \Global \PianoLH >>
			>>
			
			\context Staff = "Bass" \with {
				\override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 8)
			}
			<< \Global \Bass >>
			
			\context DrumStaff = "Drums"
			<< \Global \Drums >>
		%>>
	>>
	}
	
	\score { % MIDI
	<<
		\context Staff = "Alt-Sax" {
			\set Staff.midiInstrument = #"alto sax"
			<< \Global \unfoldRepeats \AltSaxI \AltSaxII >>
		}
		
		\context Staff = "Tenor-Sax" {
			\set Staff.midiInstrument = #"tenor sax"
			<< \Global \unfoldRepeats \TenorSaxI \TenorSaxII >>
		}
		
		\context Staff = "Baritone-Sax" {
			\set Staff.midiInstrument = #"baritone sax"
			<< \Global \unfoldRepeats \BaritoneSax >>
		}
		
		\context Staff = "Trumpet" {
			\set Staff.midiInstrument = #"trumpet"
			<< \Global \unfoldRepeats \TrumpetI \TrumpetII \TrumpetIII \TrumpetIV >>
		}
		
		\context Staff = "Trombone" {
			\set Staff.midiInstrument = #"trombone"
			<< \Global \unfoldRepeats \TromboneI \TromboneII \TromboneIII \TromboneIV >>
		}
		
		\context Staff = "Guitar" {
			\set Staff.midiInstrument = #"guitar harmonics"
			<< \Global \unfoldRepeats \GitHarmony >>
		}
		
		\context Staff = "Piano" {
			\set Staff.midiInstrument = #"acoustic grand"
			<< \Global \unfoldRepeats \PianoRH \PianoLH >>
		}
		
		\context Staff = "Bass" {
			\set Staff.midiInstrument = #"acoustic bass"
			<< \Global \unfoldRepeats \Bass >>
		}
		
		\context DrumStaff = "Drums" {
			<< \Global \unfoldRepeats \Drums >>
		}
	>>
	
	\midi {
		\context {
			\Voice
			%\remove "Dynamic_performer"
		}
	}
}

} % Ende \bookpart "Noten"

} % Ende \book