On 2014/07/07 20:48:17, Mark Polesky wrote:
[...]

  this raises
a new question: How do I tweak the distance between the half-note's
two stems in
tablature?

\new TabStaff {
   \tabFullNotation
   c2
}

You can't.
It's hardcoded with tabvoice::draw-double-stem-for-half-notes in
tablature.scm

Personally I'd prefer the double stem centered on the TabNoteHead.
Something at the lines of:

(define-public (tabvoice::draw-double-stem-for-half-notes grob)
  (let ((stem (ly:stem::print grob)))
    ;; is the note a (dotted) half note?
    (if (= 1 (ly:grob-property grob 'duration-log))
        ;; yes -> draw double stem
        (ly:stencil-add
            (ly:stencil-translate-axis stem -0.315 X)
            (ly:stencil-translate-axis stem 0.315 X))
        ;; no -> draw simple stem
        stem)))

And while on it, the value 0.315 could be taken from a property or an
optional argument.


https://codereview.appspot.com/110840044/

_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to