On Wed, Oct 1, 2008 at 6:28 PM,  <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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

Reply via email to