lilypond-user
[Top][All Lists]
Advanced

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

Adding aligned text beneath a fret board diagram


From: Nat Davis
Subject: Adding aligned text beneath a fret board diagram
Date: Wed, 3 Feb 2016 14:30:20 +0000 (UTC)

I would like to add the interval underneath the fret board diagram while having the fingering in-dot. So far I can get the fingering in the dot but I can not figure out how to get text beneath the fret diagram. 
The result should look like this:

in dot fingering here
some strings extended 
|   |   |   |   |   |
5 R 5 R  3  5  note relationship to root 

or worst case put the note relationship info on top of the fret diagram 



Here is my code:


\version "2.18.2"
\header {
  title = "Fret Diagrams With Fingering And Chord Intervals Displayed ie Root 5th b3rd"
  composer = "Nat Davis"
  tagline = \markup {
    Engraved at
    \simple #(strftime "%Y-%m-%d" (localtime (current-time)))
    with \with-url #"http://lilypond.org/"
    \line { LilyPond \simple #(lilypond-version) (http://lilypond.org/) }
  }
}
<<
\new Staff
{
  
 \new Voice = “” 
   \with
   {
     %% place space between fret diagram and staff
     \override TextScript.padding = #10
   } 
  
 %% f major for guitar, barred on sixth fret
    %  verbose style
    %  roman fret label, finger labels in dots
    <c' f' c'' f'' a'' c'''  >
    ^\markup 
    {
      
      % I want this underneath the fret diagram so that I can display  
      % where the root or 3rd or 7th ect is
       "5 1 5 1 3 5"
      % 450% of default size
      \override #'(size . 4.5)
      
      {
        \override #'(fret-diagram-details . 
                      (
                       (number-type . roman-upper)
                       (finger-code . in-dot)
                       (%finger-code . below-string)
                       (number-type . arabic)
                       (label-dir . -1)
                      )
                    )
        {
          \fret-diagram-verbose #'(
                                   (place-fret 6 8 1)
                                   (place-fret 5 8 1)
                                   (place-fret 4 10 2)
                                   (place-fret 3 10 3)
                                   (place-fret 2 10 4)
                                   (place-fret 1 8 1)                                  
                                   )
        }
      }
    }

}
>>



reply via email to

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