There's a way to display a predefined guitar fretboard inside a \markup
block?
See below an example of a simple leadsheet: I want to display the chord
fretboards below the title. I'm defining the fretboards with \fret-diagram
commands, but I wonder if I can avoid it and use the definitions in
predefined-guitar-fretboards.ly


\version "2.18.0"
\include "predefined-guitar-fretboards.ly"

myChords = \chordmode {
  g2 e:m7
  a:m7 d:7
}

myLyrics = \lyricmode {
  "This is"2 "my song, "
  "sing with" "me"
}

GuitarFretBoards = \markup {
  \column { "G" \fret-diagram-terse #"3;2;o;o;o;3;" }
  \column { "Em7" \fret-diagram-terse #"o;2;2;o;3;o;" }
}

\bookpart {
  \header {
    title = "Title"
  }
  \paper {
    markup-system-spacing = #'((padding . 10))
  }
  \GuitarFretBoards
  \score {
    <<
      \new ChordNames { \myChords }
      \new Lyrics { \myLyrics }
    >>
    \layout {
      indent = 0
      line-width = 110
      ragged-right = ##f
    }
  }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to