On 2012-05-09 16:01, Choan Gálvez wrote:
. . .
Many thanks for the advice and the link.
In the meantime, I searched this list's archives more
carefully and
found a solution which works perfectly.
Posted by Neil Puttock on Fri, 8 Apr 2011 20:40:16 +0100 and
archived at
http://lists.gnu.org/archive/html/lilypond-user/2011-04/msg00187.html
:
\override TabNoteHead #'Y-offset =
#(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
(ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
What wasn't immediately obvious to me was where to insert that
fragment,
but I got lucky at the first attempt by putting it inside the
\with
construct for my TabStaff :
\new TabStaff
\with
{
tablatureFormat = #fret-letter-tablature-format
fretLabels = #luteFretLabels % defined elsewhere by me
stringTunings = #bandoraTuningSet % defined elsewhere by me
\override TabNoteHead #'Y-offset =
#(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
(ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
\remove "Clef_engraver"
\remove "Time_signature_engraver"
}
{
% stuff ...
}
Nice. But... it still results in the same ugly (to me) vertical
alignments: letters with ascendant strokes look nice, letters
with descendant strokes are aligned by its bottom, letters
without ascendants or descendants leave a gap between its
bottom and the line. See attachment.
% simplified example
\version "2.14.2"
\new TabStaff
\with
{
tablatureFormat = #fret-letter-tablature-format
\override TabNoteHead #'Y-offset =
#(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
(ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
}
{
e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f''
fis'' g'' gis''
}
% end example
Best.
Yes, I agree. There's always scope for stuff to be even better,
and this too could be even better.
It solves my immediate problem, though. I want something I can
compare against a facsimile original (and other candidate
sources), and then play from (on a bass viol in an obscure
/scordatura/), rather than something to publish for others. This
meets both those needs. Believe me, it's _much_ easier to read
than the original.
Thanks again. All the best.
Christopher W.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user