lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creates FingeringColumn to prevent vertical fingering intersections.


From: dak
Subject: Re: Creates FingeringColumn to prevent vertical fingering intersections. (issue 6472056)
Date: Wed, 29 Aug 2012 18:28:05 +0000


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.

http://codereview.appspot.com/6472056/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]