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

Issue 6202048: staff_radius fixes

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by benko.pal
Modified:
11 years, 11 months ago
Reviewers:
Graham Percival
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

staff_radius fixes 1. implementation does not assume staff centred at zero 2. where used for determining whether within staff or not, use new function Staff_symbol_referencer::staff_span instead

Patch Set 1 #

Total comments: 2

Patch Set 2 : unite uses of convex_head_distances.size () #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -36 lines) Patch
M lily/include/staff-symbol-referencer.hh View 1 chunk +10 lines, -0 lines 0 comments Download
M lily/side-position-interface.cc View 1 chunk +3 lines, -1 line 0 comments Download
M lily/slur-configuration.cc View 1 3 chunks +10 lines, -14 lines 0 comments Download
M lily/staff-symbol-referencer.cc View 1 chunk +14 lines, -2 lines 0 comments Download
M lily/tie-formatting-problem.cc View 3 chunks +15 lines, -9 lines 0 comments Download
M lily/tuplet-bracket.cc View 1 chunk +9 lines, -10 lines 0 comments Download

Messages

Total messages: 4
benko.pal
this patch makes staff_radius work in cases when line-positions is overridden. so long staff_radius assumed ...
11 years, 11 months ago (2012-05-05 21:34:15 UTC) #1
benko.pal
> this patch makes staff_radius work in cases when line-positions is overridden. > so long ...
11 years, 11 months ago (2012-05-06 17:25:52 UTC) #2
Graham Percival
looks like this simplifies things, which is always nice to see. http://codereview.appspot.com/6202048/diff/1/lily/slur-configuration.cc File lily/slur-configuration.cc (right): ...
11 years, 11 months ago (2012-05-07 18:25:35 UTC) #3
benko.pal
11 years, 11 months ago (2012-05-07 20:28:34 UTC) #4
On 2012/05/07 18:25:35, Graham Percival wrote:
> looks like this simplifies things, which is always nice to see.
> 
> http://codereview.appspot.com/6202048/diff/1/lily/slur-configuration.cc
> File lily/slur-configuration.cc (right):
> 
>
http://codereview.appspot.com/6202048/diff/1/lily/slur-configuration.cc#newco...
> lily/slur-configuration.cc:291: size_t n = convex_head_distances.size ();
> is .size() the number of staff spaces, or the amount of bytes it takes in
> memory, or what?  I'm slightly wondering about changing n from a Real to a
> size_t.

convex_head_distances is a std::vector, so size () counts its elements.  I've
changed the type of n exactly because as Real it triggered a warning (now
another warning is triggered by /= n, but the code is more readable this way, I
hope).

A new patch set is uploaded, with all convex_head_distances.size () calls
united.  regression tests are unchanged relative to the original patch set.
Sign in to reply to this message.

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