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

Issue 6294047: Issue 2584 (redo 1967): please make partcombine merge slurs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by dak
Modified:
11 years, 9 months ago
Reviewers:
Keith, Reinhold
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

Issue 2584 (redo 1967): please make partcombine merge slurs The partcombiner does not really bother about keeping the number of generated start and end slur events matched, so this attempts to cope by implementing the following behavior: a) multiple slur starts on the same moment are not an error but the same as one. b) multiple slur ends on the same moment are not an error but the same as one. a2) there will be a slur with direction UP if there is at least one such start event, and there will be a slur with direction DOWN if there is at least one such end event. This might imply a double slur, but for ending it, a single slur end is sufficient. Consequently, a^(_( c)) (the second closing paren not required, just added for prettiness) will add a double slur. Revert "Allow multiple identical slurs (issue 1967)" This reverts commit b986b38f14195f31e26b0a929c8ac23a8ecfc204. Conflicts: lily/slur-engraver.cc

Patch Set 1 #

Patch Set 2 : Adapt regtests #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -64 lines) Patch
M input/regression/phrasing-slur-multiple.ly View 1 2 chunks +8 lines, -6 lines 0 comments Download
M input/regression/slur-multiple.ly View 1 2 chunks +8 lines, -6 lines 0 comments Download
M lily/phrasing-slur-engraver.cc View 2 chunks +67 lines, -13 lines 0 comments Download
M lily/slur-engraver.cc View 1 chunk +77 lines, -39 lines 3 comments Download

Messages

Total messages: 5
Keith
Works good for me. You might consider three commits revert b986b3 fix 1967 and 1884 ...
11 years, 10 months ago (2012-06-08 08:02:02 UTC) #1
dak
On 2012/06/08 08:02:02, Keith wrote: > Works good for me. > > You might consider ...
11 years, 10 months ago (2012-06-08 08:24:55 UTC) #2
Reinhold
> The partcombiner does not really bother about keeping the number of > generated start ...
11 years, 10 months ago (2012-06-08 09:44:22 UTC) #3
dak
On 2012/06/08 09:44:22, Reinhold wrote: > So to me it > seemed reasonable to warn ...
11 years, 10 months ago (2012-06-08 09:57:54 UTC) #4
Keith
11 years, 9 months ago (2012-07-18 23:00:14 UTC) #5
http://codereview.appspot.com/6294047/diff/4/lily/slur-engraver.cc
File lily/slur-engraver.cc (right):

http://codereview.appspot.com/6294047/diff/4/lily/slur-engraver.cc#newcode220
lily/slur-engraver.cc:220: ev->origin ()->warning (_ ("already have slur"));
You could simply finish here, with
    } 
    start_events_.erase (start_events_.begin () + i);
    break;
  }
replacing everything through line 258.  Then you simply keep the direction of
first slur-event you saw.

http://codereview.appspot.com/6294047/diff/4/lily/slur-engraver.cc#newcode238
lily/slur-engraver.cc:238: // be decidedly strange for manual input.
When each of the parts being combined is a few pages long, I find I write a few
inconsistencies equivalent to

  \partcombine {c''2^( d'')} {c'2( d')}

The slurs are then silently dropped, for complicated reasons.

http://codereview.appspot.com/6294047/diff/4/lily/slur-engraver.cc#newcode246
lily/slur-engraver.cc:246: Direction slur_dir = to_dir (slurs_[j]->get_property
("direction"));
This call might wait to see the layout under the slur, including effects of
line-breaks, before reporting back.  If you understand "pure" in LilyPond, you
can use get_pure_property()
Sign in to reply to this message.

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