lilypond-devel
[Top][All Lists]
Advanced

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

(patch proposition) note-by-number augmentation dot position


From: Risto Vääräniemi
Subject: (patch proposition) note-by-number augmentation dot position
Date: Fri, 25 Apr 2008 16:22:52 +0300

Dear All,

In current LP version the \note and \note-by-number put augmentation
dots very close to the flags. Sometimes they even collide. On the
other hand if the stem length is increased the dots are not moved any
closer to the stem, i.e., under the flags.

I made a small experiment with the dots and here come the results.

in note-by-number there are two lines:
(if (and dots flaggl (> dir 0))
        (set! dots (ly:stencil-translate-axis dots 0.35 X)))

I would suggest changing them to:
(if (and dots (> dir 0) (> log 2) (or (< dir 1.15) (and (= log 4) (< dir 1.3))))
        (set! dots (ly:stencil-translate-axis dots 0.5 X)))

The first line checks if the stem direction is up, if there are dots
and if the note has flags. The rest of the line checks if the flagged
note is a 1/16 note with stem shorter than 1.3 or if the note is a 1/8
or 1/32 -> note and the stem length is shorter than 1.3. In these
cases the dots are moved to the right.

I also increased the X offset for the dots.

The code might need some optimisation but do you think if the system
is usable. You can see the results as PDF in:
http://lists.gnu.org/archive/html/lilypond-devel/2008-04/msg00231.html

-Risto

Attachment: markup_augm_dots_orig.png
Description: PNG image

Attachment: markup_augm_dots_edit.png
Description: PNG image


reply via email to

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