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.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to