\version "2.20.0"

\sourcefilename "en/included/display-predefined-fretboards.ly"
\sourcefileline 0
\include "predefined-guitar-fretboards.ly"


\paper {
  #(set-paper-size "a4")            %default is a4 (a4, letter, legal, and 11x17)
  paper-height = 14.85\cm           %vyska "papiru"
  %   line-width = 15.0\cm              %sirka "papiru"
  line-width = 18.0\cm              %sirka "papiru"   
  indent = #0                       %odsazeni prvniho radku not
  printallheaders = ##f
  print-all-headers = ##f
  ragged-right = ##f                %systémy končí tam kde končí, nevyplňují celou šíři řádku
  ragged-bottom = ##t   
  force-assignment = #""
}

\layout {
  \context { \Score
             \override MetronomeMark #'padding = #'-3
  }

  \context { \Staff
             \override TimeSignature #'style = #'numbered
             \override StringNumber #'transparent = ##t
  }
}

verseI = \lyricmode {
  \set stanza = #"1."
  Vy řez -- ni -- ci, ře -- me -- sni -- ci, vy se do -- bře ma -- tě,
  dyž vy ně -- co ku -- pu -- je -- tě, dy -- cky se smlu -- va -- tě.
  Zač te -- ho vo -- la da -- tě do -- slo -- va,
  zač ho da -- tě, dyž nic ne -- ři -- ka -- tě,
  zač ho da -- tě, da -- tě do -- slo -- va, da -- tě do -- slo -- va?
}

melody = \chordmode {
  a2 a d a e e e a
  d a e a
  a a e a a a e a e a
}

theFretBoards = \chordmode {
  \override FretBoards.FretBoard #'size = #'0.95
  \override FretBoard
  #'(fret-diagram-details finger-code) = #'none
  \set chordChanges = ##t % show chord name only at the start of the lines and when chord changes
  
  \melody
  
}      
theChords = \chordmode {
  % insert chords for chordnames here, chordnames are now German, thus B ~ H
  \germanChords
  \set chordChanges = ##t % show chord name only at the start of the lines and when chord changes
  
  \melody

}

staffMelody = \relative c' {
  \key a \major
  \clef "treble"
  \time 2/4
  % Type notes for melody here

  a8. cis16 e8 e e8. e16 fis8 gis
  a a gis fis fis4 e
  b8. cis16 d8 d
  d d d d 
  fis fis e8. d16
  d4 cis

  \repeat volta 2 { 
    
    a'8 a gis fis e4 r
    fis8 fis e d cis4 r
  }
  
  \repeat volta 2 {
    cis8-> r e-> r
    cis8-> r e-> r
    d cis d e fis4 e
    cis8-> r e-> r
    cis8-> r e-> r         
  }
  \alternative { { d8 cis d e cis4 r } { e8 e fis gis a4-> r} }
  
  \bar "|."
}

\book {
  \header {
    tagline = ##f %print foot with version
    dedication = "lidová píseň"
    title = \markup \center-column { "Vy řeznici, řemesnici" }
    poet = \markup { "Lašský tanec" }
    meter = \markup { \tiny \italic "Allegretto" }
    composer = "(Doprovod: 5)"
  }

  \score {
    <<
      \override Score.SystemStartBar #'collapse-height = #1
      \context ChordNames { \theChords }
      \context FretBoards { \theFretBoards }
      \new Staff {
        \context Voice = "voiceMelody" { \staffMelody }
      }
      \new Lyrics = "lyricsI" {
        \lyricsto "voiceMelody" \verseI
      }
    >>

  }

} %book