bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 1127 in lilypond: Piano staff centred dynamics


From: lilypond
Subject: Re: Issue 1127 in lilypond: Piano staff centred dynamics
Date: Sat, 22 Oct 2011 05:37:00 +0000


Comment #4 on issue 1127 by address@hidden: Piano staff centred dynamics
http://code.google.com/p/lilypond/issues/detail?id=1127

The example in the last comment is extreme IMHO, but it points into the right direction. Let me formulate a possible algorithm slightly differently:

1. In the normal case, the piano staves are at a fixed distance, and dynamics are vertically centered in between.

2. If necessary, the distance between the staves is increased so that the skylines don't touch.

3. For the computation in rule 2, vertical positions of dynamics are adjusted so that there aren't vertical collisions.

4. All dynamics which haven't been vertically shifted so far are now centered between the staves (*not* between the skylines).

5. If the difference between the vertical position of a dynamic grob and the vertical center between the skyline at the current horizontal position is large, shift the dynamic grob by a user-definable fraction of this vertical difference.





reply via email to

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