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

Issue 101720045: Reposition voiced rests (Issue 3902) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by PhilEHolmes
Modified:
9 years, 1 month ago
Reviewers:
Keith, lemzwerg, mail, david.nalesnik, email, uliska
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

This moves voiced rests closer together, more closely matching the recommendations of Gould, Read, etc. There are a lot of regression test changes, but all associated with repositioned rests.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated with David N's suggestion #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M lily/rest.cc View 1 2 chunks +2 lines, -2 lines 4 comments Download

Messages

Total messages: 11
PhilEHolmes
Please review
9 years, 11 months ago (2014-05-27 09:38:11 UTC) #1
uliska
On 2014/05/27 09:38:11, PhilEHolmes wrote: > Please review According to the comparison images in https://code.google.com/p/lilypond/issues/detail?id=3902#c5 ...
9 years, 11 months ago (2014-05-27 09:59:45 UTC) #2
lemzwerg
LGTM. What about making this configurable? I can imagine that for some special situations a ...
9 years, 11 months ago (2014-05-27 10:00:53 UTC) #3
uliska
On 2014/05/27 10:00:53, lemzwerg wrote: > LGTM. > > What about making this configurable? I ...
9 years, 11 months ago (2014-05-27 10:04:35 UTC) #4
email_philholmes.net
----- Original Message ----- From: <lilyliska@googlemail.com> To: <PhilEHolmes@googlemail.com> Cc: <lilypond-devel@gnu.org>; <reply@codereview-hr.appspotmail.com> Sent: Tuesday, May 27, ...
9 years, 11 months ago (2014-05-27 10:08:46 UTC) #5
mail_philholmes.net
----- Original Message ----- From: <lemzwerg@googlemail.com> To: <PhilEHolmes@googlemail.com> Cc: <reply@codereview-hr.appspotmail.com>; <lilypond-devel@gnu.org> Sent: Tuesday, May 27, ...
9 years, 11 months ago (2014-05-27 10:15:49 UTC) #6
david.nalesnik
https://codereview.appspot.com/101720045/diff/1/lily/rest.cc File lily/rest.cc (right): https://codereview.appspot.com/101720045/diff/1/lily/rest.cc#newcode138 lily/rest.cc:138: To be consistent with your change above, shouldn't this ...
9 years, 11 months ago (2014-05-27 14:12:34 UTC) #7
email_philholmes.net
----- Original Message ----- From: <david.nalesnik@gmail.com> To: <PhilEHolmes@googlemail.com>; <lemzwerg@googlemail.com>; <lilyliska@googlemail.com>; <email@philholmes.net>; <mail@philholmes.net> Cc: <lilypond-devel@gnu.org>; <reply@codereview-hr.appspotmail.com> ...
9 years, 11 months ago (2014-05-27 14:27:07 UTC) #8
david.nalesnik
On 2014/05/27 14:27:07, email_philholmes.net wrote: > ----- Original Message ----- > From: <mailto:david.nalesnik@gmail.com> > To: ...
9 years, 11 months ago (2014-05-27 16:24:29 UTC) #9
PhilEHolmes
Updated with David N's suggestion
9 years, 11 months ago (2014-05-28 14:35:04 UTC) #10
Keith
9 years, 11 months ago (2014-05-31 19:42:19 UTC) #11
Looks like a new property is the only way to get an overall improvement. 
LilyPond has good infrastructure for using properties, so there is not much code
to add.

https://codereview.appspot.com/101720045/diff/2/lily/rest.cc
File lily/rest.cc (right):

https://codereview.appspot.com/101720045/diff/2/lily/rest.cc#newcode75
lily/rest.cc:75: pos = 2 * dir;
pos = dir * robust_scm2int(me->get_property("voiced-rest-position"), 2);

https://codereview.appspot.com/101720045/diff/2/lily/rest.cc#newcode139
lily/rest.cc:139: return neutral + 2 * dir;
This one should remain 2, because the voiced rest position has already been
applied.  
/* one staff-space, 2 staff positions, from the neutral position */

The logic above seems that it would prevent half- and longer rests from crossing
the centerline, even if voiced-rest-position is 0, which I think you want.

https://codereview.appspot.com/101720045/diff/2/lily/rest.cc#newcode319
lily/rest.cc:319: "minimum-distance "
As you say, Rest.minimum-distance is ignored, so we can remove it here.

https://codereview.appspot.com/101720045/diff/2/lily/rest.cc#newcode320
lily/rest.cc:320: "style "
"voiced-rest-position "
would go here, along with an entry in scm/define-grob-properties.scm
Sign in to reply to this message.

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