Many thanks - I've taken your advice to upgrade to version 2.19.53
(also advised by other correspondents), and ran your example with
the code block to fix the alignment.
It looks lovely!
Is it possible to write tablature directly as letters on the
6-line staff, rather than as pitches? The reason I ask is that
some of the music I typeset uses a multitude of different tunings
(scordatura, if you like), and keeping track of the pitches and
their positions on the frets is fiddly. On the other hand, if I'm
copying from a manuscript, I can type out letters directly.
Thank you again for your time and trouble.
cheers,
Alasdair
Malte Meyn writes:
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.
--
Alasdair McAndrew
http://numbersandshapes.net
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user