Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1765)

Issue 4817048: First pass at avoiding very high slurs (fixes issue 163). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by MikeSol
Modified:
12 years, 8 months ago
Reviewers:
mike, wl, james.lowe, lemzwerg, Trevor Daniels, lemniskata.bernoulliego, pkx166h, hanwenn
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

First pass at avoiding very high slurs (fixes issue 163).

Patch Set 1 #

Patch Set 2 : Nixes comment with pretty print. #

Patch Set 3 : Tweaks stuff. #

Patch Set 4 : A cleaner implementation. #

Patch Set 5 : Minimally intrusive on existing regtests, adds regtests #

Total comments: 1

Patch Set 6 : Gets rid of duplicated declaration. #

Total comments: 3

Patch Set 7 : Adds extra encompass check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -10 lines) Patch
A input/regression/phrasing-slur-slur-extreme-encompass.ly View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
A input/regression/slur-accidental-extreme-encompass.ly View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
A input/regression/slur-tuplet-number-extreme-encompass.ly View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M lily/include/slur-score-parameters.hh View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M lily/slur.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/slur-configuration.cc View 1 2 3 4 5 6 6 chunks +28 lines, -10 lines 0 comments Download
M lily/slur-score-parameters.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M scm/layout-slur.scm View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14
MikeSol
Hey all, This fixes issue 163. The only downside is that it adds another entry ...
12 years, 9 months ago (2011-07-23 20:50:47 UTC) #1
lemzwerg
I don't mind if we have another obscure entry in the detail list currently. If ...
12 years, 9 months ago (2011-07-24 05:39:52 UTC) #2
lemniskata.bernoulliego
2011/7/24 <lemzwerg@googlemail.com>: > I don't mind if we have another obscure entry in the detail ...
12 years, 9 months ago (2011-07-24 08:04:16 UTC) #3
wl_gnu.org
> I'm currently preparing an extensive report on the matter of ties. > I estimate ...
12 years, 9 months ago (2011-07-24 08:06:40 UTC) #4
pkx166h
Make passes and reg tests look pretty good too See http://code.google.com/p/lilypond/issues/detail?id=163#c12 for output
12 years, 9 months ago (2011-07-24 09:49:23 UTC) #5
mike_apollinemike.com
On Jul 24, 2011, at 11:49 AM, pkx166h@gmail.com wrote: > Make passes and reg tests ...
12 years, 9 months ago (2011-07-24 10:34:31 UTC) #6
James.Lowe_datacore.com
Mike ________________________________________ From: lilypond-devel-bounces+james.lowe=datacore.com@gnu.org [lilypond-devel-bounces+james.lowe=datacore.com@gnu.org] on behalf of mike@apollinemike.com [mike@apollinemike.com] Sent: 24 July 2011 10:55 ...
12 years, 9 months ago (2011-07-24 11:17:34 UTC) #7
MikeSol
New patchset uploaded with minor tweaks. I still need to think about a better way ...
12 years, 9 months ago (2011-07-24 13:50:53 UTC) #8
MikeSol
On 2011/07/24 13:50:53, MikeSol wrote: > New patchset uploaded with minor tweaks. > I still ...
12 years, 9 months ago (2011-07-27 07:37:43 UTC) #9
Trevor Daniels
http://codereview.appspot.com/4817048/diff/13001/lily/include/slur-score-parameters.hh File lily/include/slur-score-parameters.hh (right): http://codereview.appspot.com/4817048/diff/13001/lily/include/slur-score-parameters.hh#newcode32 lily/include/slur-score-parameters.hh:32: Real max_distance_from_head_penalty_; duplicated
12 years, 9 months ago (2011-07-27 13:37:23 UTC) #10
mike_apollinemike.com
On Jul 27, 2011, at 3:37 PM, tdanielsmusic@googlemail.com wrote: > > http://codereview.appspot.com/4817048/diff/13001/lily/include/slur-score-parameters.hh > File lily/include/slur-score-parameters.hh ...
12 years, 9 months ago (2011-07-27 13:41:22 UTC) #11
pkx166h
Passes Make and reg tests.
12 years, 9 months ago (2011-07-27 19:30:41 UTC) #12
pkx166h
On 2011/07/27 19:30:41, J_lowe wrote: > Passes Make and reg tests. Sorry I updated the ...
12 years, 9 months ago (2011-07-27 19:50:12 UTC) #13
hanwenn
12 years, 9 months ago (2011-07-28 02:34:06 UTC) #14
as an overall comment; I would try to look at the buggy examples in more detail
to understand exactly what is going wrong.  It is easy to add an extra demerit,
but (as you can see) hard to make it work with all the other cases that we
handle.

http://codereview.appspot.com/4817048/diff/15002/lily/slur-configuration.cc
File lily/slur-configuration.cc (right):

http://codereview.appspot.com/4817048/diff/15002/lily/slur-configuration.cc#n...
lily/slur-configuration.cc:249: Real encompass_refpoint = minmax (state.dir_,
state.encompass_infos_[j].head_, state.encompass_infos_[j].stem_);
refpoint usually has another meaning within lilypond.

http://codereview.appspot.com/4817048/diff/15002/lily/slur-configuration.cc#n...
lily/slur-configuration.cc:252: if (fabs (encompass_refpoint) > highest_point
is this reasonable for non-horizontal slurs? Why don't you check for the maximum
dy instead?

http://codereview.appspot.com/4817048/diff/15002/lily/slur-configuration.cc#n...
lily/slur-configuration.cc:256: * 2 is the max distance allowable from the
highest notehead before
2 ?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b