lilypond-devel
[Top][All Lists]
Advanced

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

Re: * Fix arpeggio overshoot for chords which reach centre line.


From: Han-Wen Nienhuys
Subject: Re: * Fix arpeggio overshoot for chords which reach centre line.
Date: Thu, 2 Oct 2008 00:28:21 -0300

On Wed, Oct 1, 2008 at 6:28 PM,  <address@hidden> wrote:
>> while (mol.extent(Y_AXIS) + 1.0 <  heads[RIGHT])
>>  { add_at_edge }
>>
>> (where 1.0 is intelligently chosen.)
>
> That's similar to how I approached it originally, without changing the
> loop,
>
> for (Real y = heads[LEFT]; y + EPS < heads[RIGHT];
>
> where EPS = 1e-3.
>
> I decided to use rint () instead since I can't see a situation where it
> wouldn't work (obviously apart from the case where somebody changes
> Arpeggio #'font-size); isn't the extent of the squiggle glyph
> deliberately set to be one staff-space, so it fits between two staff
> lines exactly?

No, the squiggle happens to be one staff space, but better not count on that.

> The while loop looks more elegant though, of course.
>
> This is possibly a stupid question, but why are the directions for the
> drul_array heads[] horizontal?

Not sure; maybe because I think of intervals as being horizontal.
Feel free to change to verticla.

-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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