[Top][All Lists]

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

Re: Better pure heights for slurs (issue 5431065)

From: k-ohara5a5a
Subject: Re: Better pure heights for slurs (issue 5431065)
Date: Sun, 27 Nov 2011 22:16:52 +0000

Removing the contribution from 'height-limit' to estimated slur heights
is very helpful.  It was never appropriate to add 'height-limit' to the
extent of the slurred notes, because the note or stem furthest in the
direction of the slur is much closer to the curve of the slur than
'height-limit'.  Piano music often has to increase height-limit, and the
formerly ridiculous height estimates made the page-breaker useless for

Estimating the slur extent as an offset from the notes in the direction
of the slur, rather than a widening of the notes extent on both sides,
should also help a bit.

The stuff with slur slopes is fümms bö wö tää zää uu, but seems
File lily/ (right):
lily/ ret[downup] = minmax (downup, d[dir], ret[downup]);
any different from ret.add_point(d[dir])
lily/ // we dampen the height approximation by the slur's
likely slope
'height_approximation' now stores free_head_distance_, which is applied
vertically so its effect doesn't depend on slope of the slur.  Its value
is very small by default, and is only a request to the slur scoring
routine, so why bother with it?
lily/ // steeper slopes get smaller factors
Without a count of the note-columns spanned, this is more of a height
than a slope.

And larger slopes/heights get larger 'factor's, smaller '(1 - factor)'s
lily/ ret[dir] += height_approximation * (1 - factor);
dir *

reply via email to

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