lilypond-user
[Top][All Lists]
Advanced

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

Re: fret diagrams for scales and arpeggios - finger numbers as intervals


From: Carl Sorensen
Subject: Re: fret diagrams for scales and arpeggios - finger numbers as intervals
Date: Thu, 7 Jul 2011 22:32:23 -0600



On 7/7/11 10:21 PM, "Jay Lee" <address@hidden> wrote:

> Neil Puttock <n.puttock <at> gmail.com> writes:
> 
> <snip>
>> The easiest method is to define the markup first, then insert it into
>> the verbose list:
>> 
>> flatSeven = \markup { \concat { \flat 7 } }
>> 
>> \markup {
>>   \override #'(fret-diagram-details . ((finger-code . in-dot)))
>>   \fret-diagram-verbose #`((place-fret 4 4 ,flatSeven))
>> }
> <snip>
> 
> Thanks, but although the above syntax works for verbose fret diagram markup,
> it
> does not appear to work for predefined chord shapes:
> 
> flatThree = \markup { \concat { \flat 3 } }
> 
> \addChordShape  #'CmShape
>                                 #ukulele-tuning
>                                 #'(

This needs to be a "backquote" `, rather than an apostrophe '  (to the left
of the 1 key on a US keyboard).  Once you make that change, it works.

>                                 (place-fret 4 1 5)
>                                 (place-fret 3 4 ,flatThree)
>                                 (place-fret 2 4 5)
>                                 (place-fret 1 4 "R")
>                                 )
> 
> \storePredefinedDiagram #default-fret-table \chordmode { des'':m }
>                         #ukulele-tuning
>                         #(chord-shape 'CmShape ukulele-tuning)
> 
> mychords = \chordmode{
>         des'':m
> }
> 
> <<
>         \context FretBoards {
>                 \set stringTunings = #ukulele-tuning
>                 \override FretBoard
>                         #'(fret-diagram-details finger-code) = #'in-dot
>                 \mychords
>         }
>>> 
> 

P.S. You asked about getting string labels.  If you do place-fret with a
fret number of -1, you'll get a dot above the fret diagram.

HTH,

Carl




reply via email to

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