lilypond-user
[Top][All Lists]
Advanced

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

Re: Forcing a DynamicText to appear inside the staff


From: David Kastrup
Subject: Re: Forcing a DynamicText to appear inside the staff
Date: Thu, 11 Aug 2016 21:59:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

David Nalesnik <address@hidden> writes:

> Hi Thomas,
>
> On Thu, Aug 11, 2016 at 1:22 AM, Thomas Weber <address@hidden> 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



reply via email to

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