lilypond-user
[Top][All Lists]
Advanced

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

Re: French tablature?


From: Malte Meyn
Subject: Re: French tablature?
Date: Fri, 30 Dec 2016 09:27:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1



Am 30.12.2016 um 09:09 schrieb Alasdair McAndrew:
I tried it without the RhythmicStaff, just to see what the tablature
looks like.  However, the tablature is written on the lines, rather than
between them.  I suppose this could be tweaked by moving all the letters
up by half the distance between lines, but it would be nice to have this
done automatically.

I would strongly recommend to use version 2.19 not only because of the bass string support (I don’t know whether you need it) but because of a better letter positioning. In 2.18.2 the letters are positioned around their vertical center instead of the base line so the “d” sits lower than the “a” and “c”; see attachment.

Then you can add the following code to the \layout-\context-\TabStaff block (f. e. after setting tablatureFormat):

      \override TabNoteHead.before-line-breaking =
        #(lambda (grob)
          (ly:grob-set-property! grob 'Y-offset
            (+  (ly:grob-property grob 'Y-offset) 0.5)))

This moves the letters 0.5 staff spaces up from their original position. This code works also in 2.18.2 but it won’t fix the misalignment.

Attached you’ll find the original and the tweaked versions for both 2.18.2 and 2.19.53.

Attachment: tabletters_2.18.2.png
Description: PNG image

Attachment: tabletters_2.18.2_offset.png
Description: PNG image

Attachment: tabletters_2.19.53.png
Description: PNG image

Attachment: tabletters_2.19.53_offset.png
Description: PNG image


reply via email to

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