lilypond-user
[Top][All Lists]
Advanced

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

Re: fretboard diagram - string labels


From: Gilles van Eeden
Subject: Re: fretboard diagram - string labels
Date: Fri, 23 Feb 2018 01:36:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi Carl,

your analysis sounds recognizable. I did notice that a substantial amount of code could be reused, e.g. the string parsing and label printing code. I will have to look at it again and try to wrap my head around lilypond data structures and scheme syntax. Thanks for sharing your ideas.

Regards,
Gilles

On 2018-02-22 16:16, Carl Sorensen wrote:

On 2/22/18, 1:54 AM, "Gilles van Eeden" <address@hidden> wrote:

    Suggestions as to which external label to
     use and how to position and format this to match the fretboard diagram
     are welcome.

The code to place the labels already exists in the string label code used for 
'below-string finger numbers.  You should be able to find this in 
scm/fret-diagrams.scm.

You will need to figure out how to get the chord-step information into the data 
structure.  My first attempt would be to create a property (maybe called 
chord-steps, or chord-functions) in fret-diagram-details that is a list of 
string-count scheme strings, each of which corresponds to a label for the 
appropriate string (starting at string-count, ending at 1).  Then it would be a 
relatively straightforward process to print each of these scheme strings in the 
appropriate place below the fret-diagram string.

HTH,

Carl




reply via email to

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