lilypond-user
[Top][All Lists]
Advanced

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

Re: How to catch extent of AccidentalPlacement?


From: David Nalesnik
Subject: Re: How to catch extent of AccidentalPlacement?
Date: Mon, 14 Apr 2014 08:53:24 -0500

Hi Harm,


On Sat, Apr 12, 2014 at 4:53 PM, Thomas Morley <address@hidden> wrote:

One question remains: why was it changed?
Instead of more or less simply calling the vallue via ly:grob-extent
we now have to calculate it, looking at each Accidental separately.
(via map and reduce)

Just curious.
I must have missed that change.

Well, it happened before 2.17.5 as near as I can tell.

I'll look at this some more, but the problem appears to be that there is no 'elements array for AccidentalPlacement.  You call ly:grob-extent on the AP, which relies on the setting of 'X-extent, which is ly:axis-group-interface::width.  This latter function ultimately uses the contents of the elements array.  accidental-engraver.cc creates AccidentalPlacement grobs, but not an elements array.

I can't figure out where that 1.1 comes from, though.

HTH,
David


reply via email to

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