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: Mark Polesky
Subject: Re: Issue 3997: \magnifyMusic: don't modify nested properties; reformat code. (issue 110840044 by address@hidden)
Date: Tue, 8 Jul 2014 17:16:50 -0700

Good idea, Harm.  I started a new issue to take care of that:

http://code.google.com/p/lilypond/issues/detail?id=3999
http://codereview.appspot.com/101690043/


On Mon, Jul 7, 2014 at 4:12 PM, <address@hidden> wrote:

> 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]