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

Issue 265410043: \partcombine mmrest improvements (Issue 4599 etc.)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 6 months ago by Dan Eble
Modified:
8 years, 6 months ago
Reviewers:
dak, Trevor Daniels
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

This review covers three commits. The latter two depend on the first. I. Carry multi-measure rests across voices in \partcombine The Part_combine_iterator no longer just stops a multi-measure rest when a part moves out of a context. Now it recreates a rest of the correct remaining duration in the part's new context. The remaining duration of a busy multi-measure rest passes from Multi_measure_rest_engraver to Part_combine_iterator in a context property. II. part combiner: prefer rests to multi-measure rests This change fixes the case originally reported as issue 1677; however, the regression test included with this change shows that it does not solve the root problem. III. Issue 4599: end solo passage at end of part Also select silence from the remaining part. This fixes regression test part-combine-solo-end.ly.

Patch Set 1 : Carry mmrests across voices #

Patch Set 2 : Prefer rests to mmrests #

Patch Set 3 : Issue 4599: End solo at end of part #

Patch Set 4 : Remove vestiges of an intermediate failed solution #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -30 lines) Patch
A input/regression/part-combine-silence-solo.ly View 1 1 chunk +14 lines, -0 lines 0 comments Download
M input/regression/part-combine-solo-end.ly View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M lily/multi-measure-rest-engraver.cc View 3 chunks +13 lines, -1 line 0 comments Download
M lily/part-combine-iterator.cc View 3 chunks +36 lines, -20 lines 7 comments Download
M ly/engraver-init.ly View 1 chunk +8 lines, -0 lines 1 comment Download
M scm/define-context-properties.scm View 1 chunk +1 line, -0 lines 1 comment Download
M scm/part-combiner.scm View 1 2 3 5 chunks +33 lines, -7 lines 0 comments Download

Messages

Total messages: 13
Dan Eble
Prefer rests to mmrests
8 years, 6 months ago (2015-10-04 00:09:06 UTC) #1
Dan Eble
End solo at end of part
8 years, 6 months ago (2015-10-04 00:09:56 UTC) #2
Dan Eble
8 years, 6 months ago (2015-10-04 00:14:38 UTC) #3
Dan Eble
Remove vestiges of an intermediate failed solution
8 years, 6 months ago (2015-10-04 13:46:22 UTC) #4
Trevor Daniels
https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc File lily/part-combine-iterator.cc (right): https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc#newcode146 lily/part-combine-iterator.cc:146: // get_event_length(), which reads "length"? Perhaps this question should ...
8 years, 6 months ago (2015-10-08 12:07:42 UTC) #5
Dan Eble
https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc File lily/part-combine-iterator.cc (right): https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc#newcode146 lily/part-combine-iterator.cc:146: // get_event_length(), which reads "length"? On 2015/10/08 12:07:42, Trevor ...
8 years, 6 months ago (2015-10-08 22:09:32 UTC) #6
dak
https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc File lily/part-combine-iterator.cc (right): https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc#newcode144 lily/part-combine-iterator.cc:144: // What is the relationship between "duration" and "length"? ...
8 years, 6 months ago (2015-10-09 06:23:09 UTC) #7
dak
https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc File lily/part-combine-iterator.cc (right): https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc#newcode53 lily/part-combine-iterator.cc:53: void start_mmrest (Context *c, const Moment &length); We don't ...
8 years, 6 months ago (2015-10-09 06:55:02 UTC) #8
Dan Eble
On 2015/10/09 06:55:02, dak wrote: > We don't pass Moment by reference. It's a simple ...
8 years, 6 months ago (2015-10-10 00:36:04 UTC) #9
Dan Eble
On 2015/10/09 06:23:09, dak wrote: > https://codereview.appspot.com/265410043/diff/60001/lily/part-combine-iterator.cc#newcode144 > lily/part-combine-iterator.cc:144: // What is the relationship between ...
8 years, 6 months ago (2015-10-10 01:50:28 UTC) #10
dak
On 2015/10/10 00:36:04, Dan Eble wrote: > On 2015/10/09 06:55:02, dak wrote: > > > ...
8 years, 6 months ago (2015-10-10 07:16:42 UTC) #11
dak
On 2015/10/10 01:50:28, Dan Eble wrote: > On 2015/10/09 06:23:09, dak wrote: > > > ...
8 years, 6 months ago (2015-10-10 07:35:59 UTC) #12
Dan Eble
8 years, 6 months ago (2015-10-11 01:49:13 UTC) #13
On 2015/10/10 07:35:59, dak wrote:
> On 2015/10/10 01:50:28, Dan Eble wrote:
> > When I change my start_mmrest() to set "duration" instead of "length", the
bug
> > in part-combine-solo-end.ly reappears.  I am using
> > Duration().compressed(length.main_part_).smobbed_copy() as the duration.
> 
> Well, here I see SCM_EOL.

I was talking about experimenting in my working copy; sorry for the confusion.
Sign in to reply to this message.

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