\version "2.24.4"

\header {
	title = "Davinci Cocek"
	composer = "Riko Band"
	arranger = "Arr. Paul Marini"
	copyright = "8/25/2026" %date of latest edits
}
\paper {
  #(set-paper-size "letter")
  }

the_form = %Form
	\markup { \box \column {
	\line { " " }
	\line { \bold " Form: " }
	\line { " A B A B " }
	\line { " Solo, Hits, Solo, Tag " }
	\line { " " }
	}}

test = { \relative c' { \tempo 4 = 80 
	\repeat volta 2 {
	}
}
}

%{ ornament conventions, a/o 10/2017
%	\prall		regular up ornament, metric
%	\lineprall	quick, nonmetric up ornament		(was \mordent)
%	\mordent	regular down ornament, nonmetric	(was \upbow)
%	\prallprall	consecutive up ornaments, metric
%   \trill		trill
%	\turn		turn of some sort
%}

%{ split part:
%	<<
%		{ c8 d e f g f e d | c1 | }
%	\\
%		{ c,2 d8 e f g | c4 g e c | }
%	>>
%}

%{ modified volta spanners:
% (now we are putting the alternatives inside the repeat)
%	\repeat volta 4 {
%		\volta 1,2,3 { ... }
%		\volta 4 { ... }
%	}
%}

%{ modified notes:
%   small notes:     \magnifyMusic #0.75 { ... }
%   slash notation:  \improvisationOn \omit Stem  -- \improvisationOff \undo \omit Stem
%}

%{ right-aligned text: \textEndMark \markup {}
%}

melody = { \relative c'' { 

  \section
  \sectionLabel \markup { \box "A" }
	\repeat volta 4 {
    d8^\markup { \tiny \italic "This melody is just a sketch" } f16 e e8 e e4 e8 d | d f16 e e8 e e4 r | 
    d8 f16 e e8 e e4 e8 d | d f16 e e8 e e4 r^\markup { \tiny \bold "4x" } | 
	}
	\alternative {
	}

  \section
  \sectionLabel \markup { \box "B" }
	\repeat volta 4 {
    r4 e8 f g4.\trill f8 | g4.\trill f8 e e e d |
    g4\trill \tuplet 3/2 { f8 e d } e e e d | g4\trill \tuplet 3/2 { f8 e d } f e_\markup { \italic "D.C., then to solos" } e4^\markup { \tiny \bold "4x" } |
  }

  \section
  \sectionLabel \markup { \box "Solo - open" }
  s1*4 |
  \section
  \sectionLabel \markup { \box "Hits" }
  \repeat volta 2 {
    r4 \tuplet 3/2 { g4 f8 } \tuplet 3/2 { f8 e f } g4 |
    r4 \tuplet 3/2 { g4 f8 } \tuplet 3/2 { f8 e f } g4 |
    r4 \tuplet 3/2 { g4 f8 } \tuplet 3/2 { f8 e f } g4 |
    \tuplet 3/2 { g4 f8\prall } f4 \tuplet 3/2 { g8 f e\prall } e4 |
    r4 \tuplet 3/2 { g4 f8 } \tuplet 3/2 { f8 e f } g4 |
    r4 \tuplet 3/2 { g4 f8 } \tuplet 3/2 { f8 e f } g4 |
    r4 \tuplet 3/2 { g4 f8 } \tuplet 3/2 { f8 e f } g4 |
    \tuplet 3/2 { g4 f8\prall } f4 \tuplet 3/2 { g8 f e\prall } e4 |
  }
  \section
  \sectionLabel \markup { \box "Solo 2 - open" }
  \repeat volta 4 {
    s1*4 |
  }
  \break
  s1 | s1 | e4 f8 g f e d4 | e f g r |
  \break

  \section
  \sectionLabel \markup { \box "Tag" }
  d16[ d r d] r d[ r d] cis4-- r | 
  d8[ r16 cis]~ cis4 r2 |
  d8[ r16 cis]~ cis4 r2 |
  d8[ r16 cis]~ cis4 r2 |
  d'8[ r16 cis]~ cis4 r2 |
  \fine 

}}

midbrass = { \relative c { 

  \section
  \sectionLabel \markup { \box "A" }
	\repeat volta 4 {
    <e, e'>1~->^\markup { \tiny \italic "3rd & 4th x Paul add 5th" } | <e e'>~ | <e e'>~ | <e e'> |
	}
  \break

  \section
  \sectionLabel \markup { \box "B" }
	\repeat volta 4 {
    \repeat percent 4 {
    r8.^\markup { \tiny \italic "tacet 1st time" } <g' b e>32 <g b e> <g b e>8 <g b e> r <g b e> r16 <g b e> r8 |
  }}
  \break

  \section
  \sectionLabel \markup { \box "Solo - open" }
  \repeat volta 4 {
    \repeat percent 4 {
      r4^\markup { \tiny \italic "Break! (2 bars)" } <g b e>16 <g b e> r8 <g b e>16[ <g b e> r <g b e>] <g b e>8 <g b e> |
    }
  }
  \break
  \section
  \sectionLabel \markup { \box "Hits" }
  \repeat volta 2 {
      <g b e>4 r r2 | <g b e>8 <g b e> r4 r2 | <g b e>4 r r2 |
      r4 <g b e>16 <g b e> r8 <g b e>16[ <g b e> r <g b e>] <g b e>8 <g b e> |
    \break
    \repeat percent 3 {
      r4 <g b e>8 <g b e> r4 <g b e>8 <g b e> |
    }
      r4 <g b e>16 <g b e> r8 <g b e>16[ <g b e> r <g b e>] <g b e>8 <g b e> |
  }
  \break

  \section
  \sectionLabel \markup { \box "Solo 2 - open" }
  \repeat volta 2 {
    \repeat percent 4 {
      r4 <g b e>8 <g b e> r4 <g b e>8 <g b e> |
    }
  \break
  \repeat percent 3 {
  r4 <g b e>8 <g b e> r4 <g b e>8 <g b e> | 
  }
  R1 |
  \break
  }

  

  \section
  \sectionLabel \markup { \box "Tag" }
  <d d'>16[ <d d'> r <d d'>] r <d d'>[ r <d d'>] <cis cis'>4-- r | 
  <d d'>8[ r16 <cis cis'>]~ <cis cis'>4 r2 |
  <d d'>8[ r16 <cis cis'>]~ <cis cis'>4 r2 |
  <d d'>8[ r16 <cis cis'>]~ <cis cis'>4 r2 |
  <d d'>8[ r16 <cis cis'>]~ <cis cis'>4 r2 |
\fine 
}}


changes = { \chordmode {

% A
e1:min |

}}


\book {
	\bookOutputSuffix "midbrass"
  \header { poet = "Midbrass" }
	\score {
    <<
      \new ChordNames {
        \set chordChanges = ##t
        \changes
      }
      \new Staff \with { \magnifyStaff #5/7 }
      { \clef treble
        \melody
      }
      \new Staff { \clef bass
        \midbrass
      }
    >>
	}
	\the_form
}
%{
\book {
	\score {
		<<
			\new Staff {
				\set Staff.midiInstrument = #"trumpet" \unfoldRepeats
				\trumpet
			}
		\new Staff {
			\set Staff.midiInstrument = #"trumpet" \unfoldRepeats
			\midbrass
		}
		>>
		\midi { }
	}
}
\book {
	\score {
		<<
			\new Staff {
				\set Staff.midiInstrument = #"trumpet" \unfoldRepeats
				\test
			}
		>>
		\midi { }
	}
}
%}
