\version "2.24.4"

\header {
	title = "Moliendo Cafe"
	composer = ""
	arranger = "Txn. Paul Marini"
	copyright = "2026-10-05" %date of latest edits
}
\paper {
  #(set-paper-size "letter")
  indent = #0
  }

the_form = %Form
	\markup { \box \column {
	\line { " " }
	\line { \bold " Form: " }
	\line { " Intro, sous & bari only, then add mids & drums " }
	\line { " Instrumental " }
	\line { " A A B A (vocal). Hits at end of 2nd & 4th A, mids line at end of B " }
	\line { " Instrumental " }
	\line { " Tag " }
	\line { " A A (solo), B A (vocal) " }
	\line { " bonus B (vocal and horns) " }
	\line { " Tag to end! " }
	\line { " " }
	}}

melody = { \relative c'' { 

  \section
  \sectionLabel \markup { \box "Intro" }
  R1*2 |
  \section
  R1*3 |
  r2. r16 \f e, a b |
  \break

  \section
  \sectionLabel \markup { \box "Instrumental" }
  c16[ c r c] r c[ r c] r c[ r c] r c b a | c16 a~ a8~ a4 r4 r16 e a b |
  c16[ c r c] r c[ r c] r c[ r c] r c b a | d2~ d4 r16 a b c |
  \break
  d16[ d r d] r d[ r d] r d[ r d ] r d c b | 
  c16 a~ a8~ a4 r r16 e a b |
  c16[ c r c] r c[ r c] b[ b r b] r b c b | 
  <a c>8 <a c> r16 <a c>[ r <a c>] <a c>4 r |
  \break

  \repeat segno 2 {
    \section
    \mark \markup { \box "Vocal A" }
    \repeat volta 2 {
      R1*7
      \alternative {
        { R1 | }
        { <a c>8 <a c> r16 <a c>[ r <a c>] <a c>4 r | }
      }
    }
    \break

    \section
    \sectionLabel \markup { \box "Vocal B" }
    d8(^\markup { \italic \bold \tiny "only" \italic \tiny "play this on bonus chorus, otherwise long tones are good" } e16 d~ d e d f~ f4~ f16 e d e |
    d8. c16~ c2) r4 |
    d8( e16 d~ d e d f~ f4~ f16 e d e |
    d8. c16~ c2) r4 |
    b16[ b r b] b8 b d16[ d r d] d8 c |
    <gis b>8 <a c> <b d> <a c> <gis b>4 r |
    \break
  }

  \section
  \sectionLabel \markup { \box "Tag" }
  \repeat percent 3 {
    a8 r g r f[ r16 e] r e[ gis8] |
  }
  a4-^ r2. |
  \break

}}

midbrass = { \relative c' {

  \section
  \sectionLabel \markup { \box "Intro" }
  R1*2 |
  \section
  \repeat percent 4 {
    r8 <a c>16 <a c> r8 <a c>16 <a c> r8 <a c>16 <a c> r8 <a c>16 <a c> |
  }
  \break

  \section
  \sectionLabel \markup { \box "Instrumental" }
  <a c>4-^ r r2 |
  r8 <e a c>16 <e a c> r16 <e a c> <e a c> <e a c> r8 <e a c>16 <e a c> r16 <e a c> <e a c> <e a c> |
  \improvisationOn \omit Stem 
  \repeat unfold 5 {
    d4 d d d |   
  }
  \improvisationOff \undo \omit Stem
  <a' c>8 <a c> r16 <a c>[ r <a c>] <a c>4 r |
  \break

  \repeat segno 2 {
    \section
    \mark \markup { \box "Vocal A" }
    \repeat volta 2 {
      \improvisationOn \omit Stem 
      \repeat unfold 7 {
        d,4 d d d |   
      }
      \improvisationOff \undo \omit Stem
      \alternative {
        { 
          \improvisationOn \omit Stem 
          d4 d d d |   
          \improvisationOff \undo \omit Stem
        }
        { <a' c>8 <a c> r16 <a c>[ r <a c>] <a c>4 r | }
      }
    }
    \break

    \section
    \sectionLabel \markup { \box "Vocal B" }
    \improvisationOn \omit Stem 
    \repeat unfold 5 {
      d,4 d d d |   
    }
    \improvisationOff \undo \omit Stem
    <gis b>8 <a c>  <b d>  <a c> <gis b>4 r |
    \break
  }

  \section
  \sectionLabel \markup { \box "Tag" }
	\repeat volta 2 {
    \repeat percent 3 {
      a8 r g r f[ r16 e] r e[ gis8] |
    }
    a4-^ r r2 |
	}
  \break


}}


bass = { \relative c { 

  \section
  \sectionLabel \markup { \box "Intro" }
  \repeat percent 2 {
    a8^\markup { \italic \bold \tiny "Sous and Bari sax" } r g r f[ r16 e] r e[ gis8] |
  }
  \section
  \repeat percent 4 {
    a8 r g r f[ r16 e] r e[ gis8] |
  }
  \break

  \section
  \sectionLabel \markup { \box "Instrumental" }
  a4-^ r r2 |
  a8[ r16 c] r8 e a,8[ r16 c] r8 e |
  \improvisationOn \omit Stem 
  \repeat unfold 5 {
    d4 d d d |   
  }
  \improvisationOff \undo \omit Stem
  a8 a r16 a[ r a] a4 r |
  \break

  \repeat segno 2 {
    \section
    \mark \markup { \box "Vocal A" }
    \repeat volta 2 {
      \improvisationOn \omit Stem 
      \repeat unfold 7 {
        d4 d d d |   
      }
      \improvisationOff \undo \omit Stem
      \alternative {
        { 
          \improvisationOn \omit Stem 
          d4 d d d |   
          \improvisationOff \undo \omit Stem
        }
        { a8 a r16 a[ r a] a4 r | }
      }
    }
    \break

    \section
    \sectionLabel \markup { \box "Vocal B" }
    \improvisationOn \omit Stem 
    \repeat unfold 5 {
      d4 d d d |   
    }
    \improvisationOff \undo \omit Stem
    gis,8 a b a gis4 r |
    \break
  }

  \section
  \sectionLabel \markup { \box "Tag" }
	\repeat volta 2 {
    \repeat percent 3 {
      a8 r g r f[ r16 e] r e[ gis8] |
    }
    a4-^ r r2 |
	}
  \break

}}


changes = { \chordmode {
\set minorChordModifier = \markup { \fontsize #4 "-" }

% Intro/Tag
a1:min | a:min |
a1:min | a:min | a:min | a:min |

% Instrumental
a1:min | a:min | a:min | d:min |
d1:min | a:min | e:7 | a:min | 

% Vocal A
a1:min | a:min | a:min | d:min |
d1:min | a:min | e:7 | a:min | a:min |

% Vocal B
d1:min | a:min | d:min | a:min |
e:7 | e:7 | 

% Intro/Tag
a1:min | a:min | a:min | a:min |

}}


\book {
	\bookOutputSuffix "score"
  \header { poet = "Score" }
	\score {
    <<
      \new ChordNames {
        \set chordChanges = ##t
        \changes
      }
      \new Staff { \clef treble
        \melody
      }
      \new Staff { \clef bass
        \midbrass
      }
      \new Staff { \clef bass
        \bass
      }
    >>
	}
	\the_form
}

\book {
	\bookOutputSuffix "melody"
  \header { poet = "Melody" }
	\score {
    <<
      \new ChordNames {
        \set chordChanges = ##t
        \changes
      }
      \new Staff { \clef treble
        \melody
      }
    >>
	}
	\the_form
}

\book {
	\bookOutputSuffix "lowbrass"
  \header { poet = "Lowbrass" }
	\score {
    <<
      \new ChordNames {
        \set chordChanges = ##t
        \changes
      }
      \new Staff { \clef bass
        \midbrass
      }
      \new Staff { \clef bass
        \bass
      }
    >>
	}
	\the_form
}

% \book {
% 	\score {
% 		<<
% 			\new Staff {
% 				\set Staff.midiInstrument = #"trumpet" \unfoldRepeats
% 				\trumpet
% 			}
% 		\new Staff {
% 			\set Staff.midiInstrument = #"trumpet" \unfoldRepeats
% 			\midbrass
% 		}
% 		>>
% 		\midi { }
% 	}
% }