lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to display a predefined guitar fretboard inside a \markup block


From: Federico Bruni
Subject: how to display a predefined guitar fretboard inside a \markup block
Date: Sun, 26 Jan 2014 21:00:17 +0100

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
    }
  }
}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]