David Nalesnik <[email protected]> writes:

> Hi Thomas,
>
> On Thu, Aug 11, 2016 at 1:22 AM, Thomas Weber <[email protected]> wrote:
>>
>> I think a scheme function would be useful that determines how much
>> it needs to offset the dynamic to the left in order to move it into
>> the staff.
>
> I'm not sure how useful the code below is, but it may get you started.
>
> The code illustrates several problems.
>
> When you set outside-staff-priority to #f, you lose the mechanism
> which causes Dynamics to move vertically in the
> absence of a collision.  So there will be no automatic vertical shift
> based on X-offset.  This is very apparent if you comment out the
> X-offset override in the function \shiftWithinStaff below -- the
> dynamic moves up regardless of its horizontal position.
>
> Also, there appears to be no mechanism to accommodate dynamics within
> the staff in horizontal spacing.
>
> The function shiftToClear achieves the shifting based on X-offset, but
> it won't move anything into the staff.  Additionally, It suffers from
> the fact that it can't push notes apart to allow the shift to occur.
> You have to do that manually.

A case for grob-transformer maybe?

-- 
David Kastrup

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

Reply via email to