Stephen Torri wrote:


In my files here I put your markup lines just to see what it did. What I
found was that I got the diagram but no name above it. I have looked at
the documentation but I am not sure how to give a name to the chord
diagram.

I see other examples that do have the chord names above the fret diagram
but those situations have the chord names listed in a chordname element.
So the chord name is displayed above the fret diagram in the appropriate
measure.
Then I would use an ordinary ChordNames context for the chord names which
means that you would need to place also the fret diagrams in a context that
can align them "rhythmically" to the chord names, preferably a Lyrics context.

\score{
<<
 \new ChordNames \chordmode {
   f1:maj7/e
   f1:maj7/e
 }
 \new Lyrics \lyricmode {
   \markup {\fret-diagram #"4-2-2;3-1-1;2-o;1-o;" }
   \markup {\fret-diagram #"4-2-2;3-1-1;2-o;1-o;" }
} >>
}


Note that this separate \score{...} block can be placed below the \score{...} for your
ordinary music if you wish.

You may want to add
\score{
...
\layout{
 ragged-right = ##t
 \context{
   \Lyrics
   \override LyricSpace #'minimum-distance = #2.0
 }
}
}

to get a nicer horizontal spacing, see "Spacing Lyrics" in the manual.

  /Mats



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to