lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 3997: \magnifyMusic: don't modify nested properties; reformat


From: thomasmorley65
Subject: Re: Issue 3997: \magnifyMusic: don't modify nested properties; reformat code. (issue 110840044 by address@hidden)
Date: Mon, 07 Jul 2014 23:12:48 +0000

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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]