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

Issue 6472056: Creates FingeringColumn to prevent vertical fingering intersections. (Closed)

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

Description

Creates FingeringColumn to prevent vertical fingering intersections. Fans out Fingering grobs from the middle of the column in either direction to avoid intersections.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -0 lines) Patch
A input/regression/fingering-column.ly View 1 chunk +17 lines, -0 lines 0 comments Download
A lily/fingering-column.cc View 1 chunk +128 lines, -0 lines 2 comments Download
A lily/fingering-column-engraver.cc View 1 chunk +118 lines, -0 lines 1 comment Download
A lily/include/fingering-column.hh View 1 chunk +35 lines, -0 lines 0 comments Download
M ly/engraver-init.ly View 1 chunk +1 line, -0 lines 0 comments Download
M scm/define-grobs.scm View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Graham Percival
http://codereview.appspot.com/6472056/diff/1/lily/fingering-column-engraver.cc File lily/fingering-column-engraver.cc (right): http://codereview.appspot.com/6472056/diff/1/lily/fingering-column-engraver.cc#newcode56 lily/fingering-column-engraver.cc:56: { I don't think that we shouldn't have a ...
11 years, 8 months ago (2012-08-27 08:49:51 UTC) #1
Graham Percival
No, I'm wrong about that. astyle doesn't mind about the { as the only changes ...
11 years, 8 months ago (2012-08-27 10:02:04 UTC) #2
dak
11 years, 8 months ago (2012-08-29 18:28:05 UTC) #3
http://codereview.appspot.com/6472056/diff/1/lily/fingering-column.cc
File lily/fingering-column.cc (right):

http://codereview.appspot.com/6472056/diff/1/lily/fingering-column.cc#newcode38
lily/fingering-column.cc:38: map<Grob *, bool> shifted;
It seems quite pointless to use a map here instead of a bool array, since after
sorting, grob positions are not changed and you can just index a bool array
using
shifted[x]
rather than
shifted[fingerings[x]] employing a map.  I think we can assume that we don't
have duplicate grobs in here.

http://codereview.appspot.com/6472056/diff/1/lily/fingering-column.cc#newcode65
lily/fingering-column.cc:65: for (vsize i = min (fingerings.size () - 1,
fingerings.size () / 2 + 1); i >= 1; i--)
The commit message talks about "fanning out" from the middle of the column, but
there is no comment whatsoever in here, and it is totally unclear what this is
supposed to do.  Add a few comments here, and preferably some ASCII art in
comments illustrating problem and solution.
Sign in to reply to this message.

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