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

Issue 7319049: Avoid excessive number of dots in chords (#3179).

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by lemzwerg
Modified:
11 years, 2 months ago
Reviewers:
Keith, dak
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Avoid excessive number of dots in chords (#3179).

Patch Set 1 #

Patch Set 2 : Add missing conditional test. #

Total comments: 5

Patch Set 3 : Make it work for unusual Y-offset values. #

Total comments: 4

Patch Set 4 : Should pass all regression tests now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -3 lines) Patch
A input/regression/chord-dots.ly View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M lily/dot-column.cc View 1 2 3 4 chunks +64 lines, -3 lines 0 comments Download
M scm/define-grob-properties.scm View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M scm/define-grobs.scm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11
lemzwerg
Add missing conditional test.
11 years, 2 months ago (2013-02-16 20:52:49 UTC) #1
Keith
This seems like the most reasonable place to remove extra dots. Dot_configuration has the job ...
11 years, 2 months ago (2013-02-17 08:20:39 UTC) #2
lemzwerg
Make it work for unusual Y-offset values.
11 years, 2 months ago (2013-02-17 09:01:47 UTC) #3
lemzwerg
Thanks for the review. https://codereview.appspot.com/7319049/diff/2001/lily/dot-column.cc File lily/dot-column.cc (right): https://codereview.appspot.com/7319049/diff/2001/lily/dot-column.cc#newcode63 lily/dot-column.cc:63: vector<Interval> allowed_y_positions; On 2013/02/17 08:20:39, ...
11 years, 2 months ago (2013-02-17 10:33:08 UTC) #4
Keith
https://codereview.appspot.com/7319049/diff/7001/lily/dot-column.cc File lily/dot-column.cc (right): https://codereview.appspot.com/7319049/diff/7001/lily/dot-column.cc#newcode82 lily/dot-column.cc:82: // lines. Be careful to make it work also ...
11 years, 2 months ago (2013-02-18 07:37:48 UTC) #5
Keith
https://codereview.appspot.com/7319049/diff/7001/lily/dot-column.cc File lily/dot-column.cc (right): https://codereview.appspot.com/7319049/diff/7001/lily/dot-column.cc#newcode206 lily/dot-column.cc:206: p += (int) robust_scm2double (dp.dot_->get_property ("staff-position"), 0.0); p is ...
11 years, 2 months ago (2013-02-18 08:06:44 UTC) #6
lemzwerg
... next patch set will follow soon. https://codereview.appspot.com/7319049/diff/7001/lily/dot-column.cc File lily/dot-column.cc (right): https://codereview.appspot.com/7319049/diff/7001/lily/dot-column.cc#newcode206 lily/dot-column.cc:206: p += ...
11 years, 2 months ago (2013-02-18 16:16:33 UTC) #7
lemzwerg
Should pass all regression tests now.
11 years, 2 months ago (2013-02-19 08:45:31 UTC) #8
Keith
LGTM. We do lose the double-dot on << f'4.. \\ f'2. >> but can get ...
11 years, 2 months ago (2013-02-19 10:35:25 UTC) #9
lemzwerg
> We do lose the double-dot on << f'4.. \\ f'2. >> Yes. As shown ...
11 years, 2 months ago (2013-02-19 11:01:16 UTC) #10
dak
11 years, 2 months ago (2013-02-19 11:23:40 UTC) #11
On 2013/02/19 11:01:16, lemzwerg wrote:

> > Well, Gould is showing the usual case, where notes have
> > Dots.staff-position = 0.  You were asking for opinions
> > on the optimal way to behave for users who override
> > Dots.staff-position.  You could generalize by using the
> > requested Dots position 'p' (which is exactly the NoteHead
> > position in the simple case) in place of the note-head
> > position.
> 
> Thanks for the suggestion.  In case there is ever the need to improve my
> solution, you give a recipe to do that :-)

How about putting it in the code right now so that we don't have to hunt for it
in old code reviews at some future point of time?
Sign in to reply to this message.

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