\version "2.24.3"

#(set-default-paper-size '(cons (* 210 mm) (* 5000 mm)))

\header {
  tagline = #f
}

gtrOne = \relative {
  \time 6/8
  \key cis \minor
  \tempo 4 = 170
  \newSpacingSection
  \override Score.SpacingSpanner.spacing-increment = #0.1
  \partial 256 s256 |
  \newSpacingSection
  \revert Score.SpacingSpanner.spacing-increment
  \bar "||"
  cis8(\mp^\markup { \italic { distortion off } } fis gis) <gis b>4. |
  \compoundMeter #'((3 2 2 3 8))
  \slashedGrace cis,8( b'8\glissando cis\glissando b)
  <gis cis>8 r q r \afterGrace <gis cis>4.\glissando { \stemDown \hideNotes <dis gis>16 } \unHideNotes \stemNeutral |
  \time 6/8
  cis8( fis gis) \afterGrace b4.\glissando { \hideNotes gis16 } \unHideNotes |
  \compoundMeter #'((3 7 8))
  cis,8( dis e)
  <e gis>2~\mf q4. |
  \time 6/8
  cis8( fis gis) <gis b>4. |
  \compoundMeter #'((3 2 2 3 8))
  \slashedGrace cis,8( b'8\glissando cis\glissando b) \omit Staff.BarLine
  <gis cis>8 r q r \afterGrace <gis cis>4.\glissando { \stemDown \hideNotes <dis gis>16 } \unHideNotes \stemNeutral \undo \omit Staff.BarLine |
  \time 6/8
  cis8( fis gis) b4. |
  \compoundMeter #'((3 3 2 2 8))
  cis,8( dis e)
  <e gis>4. <e a>4. r8 |
  \time 6/8
  cis16( fis gis8) fis16( gis) \afterGrace e'4.\glissando { \hideNotes a16 } \unHideNotes |
  \compoundMeter #'((3 2 2 3 8))
  cis,,16( b' \omit Staff.BarLine cis8) e16( fis)
  <e gis>8 r q r \afterGrace <e gis>4.\glissando { \stemDown \hideNotes <b dis>16 } \unHideNotes \stemNeutral \undo \omit Staff.BarLine |
  \time 6/8
  cis,8( fis gis) \afterGrace b4.\glissando { \hideNotes gis16 } \unHideNotes |
  \grace {s8} cis,8( dis e) <e gis>4. |
  <e gis>4. <e a>4 r8 |
  cis16( fis gis8) fis16( gis) \afterGrace e'4.\glissando { \hideNotes a16 } \unHideNotes |
  \compoundMeter #'((3 2 2 3 8))
  cis,,16( b' cis8) e16( fis)
  <e gis>8 r q r \afterGrace <e gis>4.\glissando { \stemDown \hideNotes <b dis>16 } \unHideNotes \stemNeutral |
  \time 6/8
  cis,8( fis gis) b4. |
  \time 3/8
  cis,8( dis e) |
  \tempo 4 = 185
  \repeat unfold 2 { <e gis>4. | }
  \mark \markup { \concat { "6" \char ##x00d7 } } \repeat volta 6 { <e gis>4. | }
  \mark \markup { \concat { "6" \char ##x00d7 } } \repeat volta 6 { <e a>4. | }
  <e a>4 r8 |
  \time 2/8
  R4 |
  \bar "||"
}

gtrTwo = \relative {
  \time 6/8
  \key cis \minor
  \partial 256 s256 |
  cis8(\mp^\markup { \italic { distortion off } } fis gis) <b e>4. |
  \compoundMeter #'((3 2 2 3 8))
  \grace {s8} gis8( a4)
  a4 a \afterGrace a4.\glissando { \hideNotes e16 } \unHideNotes |
  \time 6/8
  cis8( fis gis) b4. |
  \compoundMeter #'((3 7 8))
  cis,16( dis e4-.)
  <gis dis'>2~\mf q4. |
  \time 6/8
  cis,8( \xNotesOn fis) \xNotesOff r e'4. |
  \compoundMeter #'((3 2 2 3 8))
  \grace {s8} \omit Staff.BarLine gis,8( a gis)
  <a cis>8 r <a e'> r \afterGrace <a gis'>4.\glissando { \stemDown \hideNotes <e dis'>16 } \unHideNotes \stemNeutral \undo \omit Staff.BarLine |
  \time 6/8
  cis8( \xNotesOn \parenthesize d)^\markup { \concat { [ \italic sic ] } } \xNotesOff r b'4. |
  \compoundMeter #'((3 3 2 2 8))
  cis,8( dis e)
  <gis dis'>4. b4. r8 |
  \time 6/8
  cis,8( b' cis) e4 r8 |
  \compoundMeter #'((3 2 2 3 8))
  cis,16( \omit Staff.BarLine gis' a8 \xNotesOn \parenthesize gis) \xNotesOff
  <a cis>8 r <a e'> r \afterGrace <a gis'>4.\glissando { \stemDown \hideNotes <e dis'>16 } \unHideNotes \stemNeutral \undo \omit Staff.BarLine |
  \time 6/8
  cis8( fis gis) b4. |
  \acciaccatura dis,8 { \parenthesize e4. } <e gis>4. |
  <gis b>4. \afterGrace <e gis>4.\glissando { \hideNotes cis'16 } \unHideNotes |
  cis,8( \parenthesize b' \parenthesize cis) e4. |
  \compoundMeter #'((3 2 2 3 8))
  gis,8-+( a \parenthesize gis)
  <a cis>8 r <a e'> r \afterGrace <a gis'>4.\glissando { \stemDown \hideNotes <e dis'>16 } \unHideNotes \stemNeutral |
  \time 6/8
  cis8( fis gis) b4. |
  \time 3/8
  cis,8( dis e) |
  \repeat unfold 2 { <gis dis'>4. | }
  \repeat volta 6 { <gis dis'>4. | }
  \repeat volta 6 { <cis gis'>4. | }
  <cis gis'>4 r8 |
  \time 2/8
  R4 |
}

bass = \relative {
  \omit Staff.TimeSignature
  \time 6/8
  \key cis \minor
  \partial 256 s256 |
  s2. \omit Staff.BarLine |
  \compoundMeter #'((3 2 2 3 8))
  \grace {s8} s4.
  s2 s4. |
  \time 6/8
  s2. |
  \undo \omit Staff.BarLine
  \undo \omit Staff.TimeSignature
  \compoundMeter #'((3 7 8))
  r4. e,,2~\mf e4.~ |
  \time 6/8
  e4 a8 gis8. fis |
  \omit Staff.TimeSignature
  \compoundMeter #'((3 2 2 3 8))
  \grace {s8}
  \omit Staff.BarLine
  e2. cis8( e cis) e( |
  \time 6/8
  fis8) b( gis4.) fis8~ |
  \compoundMeter #'((3 3 2 2 8))
  fis2. \afterGrace fis4\glissando { \hideNotes cis16 } \unHideNotes r4 |
  \time 6/8
  r8 a'8( gis fis4) e8~ |
  \compoundMeter #'((3 2 2 3 8))
  e4 \omit Staff.BarLine cis2 cis8 e cis r
  \undo \omit Staff.BarLine
  \undo \omit Staff.TimeSignature |
  \time 6/8
  r8 gis'4 b8 fis4 |
  \grace {s8} fis4. fis |
  fis4. \afterGrace fis4\glissando { \hideNotes cis16 } \unHideNotes r8 |
  r8 a'8( gis fis4)
  \omit Staff.BarLine
  \omit Staff.TimeSignature
  e8~ |
  \compoundMeter #'((3 2 2 3 8))
  e4 cis4. cis4 cis e8 |
  \time 6/8
  fis8 gis
  \undo \omit Staff.BarLine
  \undo \omit Staff.TimeSignature
  b2~ |
  \time 3/8
  b4. |
  \repeat unfold 2 { fis4. | }
  \repeat volta 6 { fis4. | }
  \repeat volta 6 { a4. | }
  a4 r8 |
  \time 2/8
  R4 |
}

kitOne = \drummode {
  \omit Staff.TimeSignature
  \time 6/8
  \partial 256 s256 |
  s2. \omit Staff.BarLine |
  \compoundMeter #'((3 2 2 3 8))
  \grace {s8} s4. s2 s4. |
  \time 6/8
  s2. |
  \undo \omit Staff.BarLine
  \undo \omit Staff.TimeSignature
  \compoundMeter #'((3 7 8))
  r4. cymc2~ cymc4. |
  \time 6/8
  cymc8 sn cymr cymr4->
  \override Staff.TimeSignature.stencil = #(lambda (grob)
    (parenthesize-stencil (grob-interpret-markup grob (make-compound-meter-markup '((2 4) (6 8)))) 0.1 0.4 0.4 0.1))
  sn8 |
  \parenthesize cymr8[ cymr->] \revert Staff.TimeSignature.stencil \parenthesize cymr[ cymr] \bar "!" sn[ cymr \parenthesize cymr] <sn cymr>[ \parenthesize cymr cymr] |
  \time 6/8
  cymr8 sn16 cymr8. cymr4 cymr8 |
  \compoundMeter #'((3 3 2 2 8))
  sn8 cymr cymr <sn cymc>4. q2 |
  \time 6/8
  cymc8 sn16 cymr8.-> cymr4->
  \override Staff.TimeSignature.stencil = #(lambda (grob)
    (parenthesize-stencil (grob-interpret-markup grob (make-compound-meter-markup '((2 4) (6 8)))) 0.1 0.4 0.4 0.1))
  sn8 |
  \parenthesize cymr8 cymr-> r4 \bar "!" sn8 cymr16 cymr8. <sn cymc>4. \revert Staff.TimeSignature.stencil |
  \time 6/8
  cymr8-> sn16 cymr8. cymr4-> cymr8 |
  sn8 cymr4 <sn cymr>4. |
  <sn cymc>4. q |
  cymr8-> sn16 cymr8. cymr4 sn8 |
  \compoundMeter #'((3 2 2 3 8))
  r8 cymr4-> <sn cymr>8 \parenthesize cymr cymr4 cymr8 sn cymr |
  \time 6/8
  r8 <sn cymr>8-> \parenthesize cymr cymr4. |
  \time 3/8
  sn4. |
  \repeat unfold 2 { <sn cymc>4. | }
  \repeat volta 6 { <sn cymc>4. | }
  \repeat volta 6 { <sn cymc>4. | }
  <sn cymc>4. \breathe |
  \time 2/8
  R4 |
}

kitTwo = \drummode {
  \time 6/8
  \partial 256 s256 |
  s2. |
  \compoundMeter #'((3 2 2 3 8))
  \grace {s8} s4. s2 s4. |
  \time 6/8
  s2. |
  \compoundMeter #'((3 7 8))
  r4. bd2\mf r4. |
  % 6/8
  <hhp bd>4. bd8 hhp4 |
  % 5/4
  r8 bd r bd r \parenthesize bd \parenthesize bd r4. |
  % 6/8
  bd4 \parenthesize bd16\veryshortfermata \parenthesize bd r4 bd8 |
  % 5/4
  r4 \parenthesize bd16 \parenthesize bd r4 hhp8 r hhp8. hhp |
  % 6/8
  bd4. bd8. bd |
  % 5/4
  r8 bd8 r bd8 r \parenthesize bd \parenthesize bd r4 hhp8 |
  % 6/8
  bd4. bd4 bd8 |
  r4 \parenthesize bd8 r4 hhp8 |
  r4. r4 hhp8 |
  bd4 \parenthesize bd8 \parenthesize bd4. |
  % 5/4
  r8 bd4 r bd bd4. |
  % 6/8
  bd4. bd4 hhp8 |
  % 3/8
  r8 hhp \parenthesize bd |
  hhp4 hhp8 |
  r4 \parenthesize bd8 |
  \repeat volta 6 { r4 bd8 | }
  \repeat volta 6 { r4 bd8 | }
  r4. |
  % 2/8
  R4 |
}

fullScore = <<
  \tag #'folded {
    \new Staff {
      \clef "treble_8"
      \gtrOne
    }
  }
  \tag #'unfolded {
    \new Staff \with {
      midiInstrument = "electric guitar (clean)"
      midiPanPosition = #-1.0
    } {
      \clef "treble_8"
      \unfoldRepeats { \gtrOne }
    }
  }

  \tag #'folded {
    \new Staff {
      \clef "treble_8"
      \gtrTwo
    }
  }
  \tag #'unfolded {
    \new Staff \with {
      midiInstrument = "electric guitar (jazz)"
      midiPanPosition = #1.0
    } {
      \clef "treble_8"
      \unfoldRepeats { \gtrTwo }
    }
  }

  \tag #'folded {
    \new Staff {
      \clef "bass_8"
      \bass
    }
  }
  \tag #'unfolded {
    \new Staff \with {
      midiInstrument = "electric bass (pick)"
      midiPanPosition = #0.0
    } {
      \clef "bass_8"
      \unfoldRepeats { \bass }
    }
  }

  \tag #'folded {
    \new DrumStaff \with { drumStyleTable = #weinberg-drums-style } <<
      \new DrumVoice { \voiceOne \kitOne }
      \new DrumVoice { \voiceTwo \kitTwo }
    >>
  }
  \tag #'unfolded {
    \new DrumStaff \with { drumStyleTable = #weinberg-drums-style } <<
      \new DrumVoice { \unfoldRepeats { \voiceOne \kitOne } }
      \new DrumVoice { \unfoldRepeats { \voiceTwo \kitTwo } }
    >>
  }
>>

\score {
  \removeWithTag #'unfolded
  \fullScore

  \layout {
    indent = 0

    \context {
      \Score
      %forbidBreakBetweenBarLines = ##f
      \override Glissando.minimum-length = #4
      \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods
      \override Glissando.thickness = #2
      \override SpacingSpanner.shortest-duration-space = #3.0
    }

    \context {
      \StaffGroup
      \RemoveAllEmptyStaves
    }
  }
}

\score {
  \removeWithTag #'folded
  \fullScore

  \midi { }
}
