\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 {
  Mě -- la jsem já hu -- lá -- na, mě -- la jsem ho rá -- da,
  mě -- la jsem já šá -- te -- ček, já jsem mu ho da -- la.
  Tra -- la -- la, la -- la -- la, la la lá, tra -- la -- la -- la, lá la,
  tra -- la -- la, la -- la -- la, la la lá, tra -- la -- la -- la, lá la.  
}

melody = \chordmode {
  d4 a:7 d a:7
  d g d a:7
  d a:7 d a:7
  d g a:7 d
  d a:7 d a:7
  d a:7 d a:7
  d a:7 d a:7
  d a:7 a:7 d
}

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 d \major
  \clef "treble"
  \time 2/4
  % Type notes for melody here
  d8 d e e
  fis fis e4
  a8 a g g
  fis4 e
  d8 d e e
  fis fis e4
  a8 a g fis
  e4 d
  a'8 b16 a g8 a16 g
  fis8 fis e4
  d8 d e e
  fis4 e
  a8 b16 a g8 a16 g
  fis8 fis e4
  d8 d e fis
  e4 d
  
  
}

\book {
  \header {
    tagline = ##f %print foot with version
    dedication = "lidová píseň"
    title = \markup \center-column { "Měla jsem já hulána" }
    poet = \markup { "Česká" }
    meter = \markup { \tiny \italic "Mírně" } %\note #"4" #1 = 121
    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