|
From: | Christopher Webster |
Subject: | Re: Adjustment to tablature output |
Date: | Wed, 09 May 2012 16:20:30 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 |
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 andfound 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 = ##fWhat 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 \withconstruct 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.
[Prev in Thread] | Current Thread | [Next in Thread] |