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

Issue 6211047: line_count fixes (Closed)

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

Description

line_count fixes 1. implementation does not assume staff centred at zero 2. where used for determining whether something falls on a line, use Staff_symbol_referencer::on_line or on_staff_line 3. where used for determining whether something is within staff or not, use Staff_symbol_referencer::staff_span

Patch Set 1 #

Total comments: 4

Patch Set 2 : improved time signature and repeat sign positioning #

Patch Set 3 : repeat sign position further improved #

Total comments: 3

Patch Set 4 : use UP_and_DOWN #

Patch Set 5 : no need to sort linepos vector #

Patch Set 6 : get rid of one more sort #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -59 lines) Patch
M input/regression/ledger-lines-varying-staves.ly View 1 1 chunk +3 lines, -3 lines 0 comments Download
M input/regression/non-centered-bar-lines.ly View 1 chunk +1 line, -0 lines 0 comments Download
M input/regression/staff-ledger-positions.ly View 1 1 chunk +1 line, -1 line 0 comments Download
M input/regression/staff-line-positions.ly View 1 1 chunk +1 line, -3 lines 0 comments Download
M input/regression/zero-staff-space.ly View 1 2 1 chunk +1 line, -1 line 0 comments Download
M lily/bar-line.cc View 1 2 3 4 5 2 chunks +58 lines, -7 lines 2 comments Download
M lily/beam.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M lily/breathing-sign.cc View 1 2 3 3 chunks +15 lines, -19 lines 0 comments Download
M lily/custos.cc View 2 chunks +1 line, -2 lines 0 comments Download
M lily/rest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M lily/rest-collision.cc View 1 chunk +4 lines, -9 lines 0 comments Download
M lily/slur-scoring.cc View 1 chunk +1 line, -2 lines 0 comments Download
M lily/time-signature.cc View 1 2 3 4 2 chunks +30 lines, -2 lines 0 comments Download
M lily/vaticana-ligature.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 10
benko.pal
http://codereview.appspot.com/6211047/diff/1/lily/slur-scoring.cc File lily/slur-scoring.cc (right): http://codereview.appspot.com/6211047/diff/1/lily/slur-scoring.cc#newcode593 lily/slur-scoring.cc:593: && Staff_symbol_referencer::on_staff_line (on_staff, (int) rint (pos))) this condition is ...
11 years, 11 months ago (2012-05-13 19:26:07 UTC) #1
Graham Percival
LGTM
11 years, 11 months ago (2012-05-14 18:57:18 UTC) #2
benko.pal
http://codereview.appspot.com/6211047/diff/1/lily/beam.cc File lily/beam.cc (right): http://codereview.appspot.com/6211047/diff/1/lily/beam.cc#newcode1282 lily/beam.cc:1282: staff_span *= 0.5 / staff_space; division is silly and ...
11 years, 11 months ago (2012-05-14 20:00:27 UTC) #3
Keith
Pál, I'm not on a system today that can compile Lilypond so I cannot look ...
11 years, 11 months ago (2012-05-15 07:24:30 UTC) #4
Keith
Looks good to me. The regtest changes look like improvements, although I wonder if the ...
11 years, 11 months ago (2012-05-23 05:44:49 UTC) #5
Keith
http://codereview.appspot.com/6211047/diff/6001/lily/time-signature.cc File lily/time-signature.cc (right): http://codereview.appspot.com/6211047/diff/6001/lily/time-signature.cc#newcode77 lily/time-signature.cc:77: --it; On 2012/05/23 05:44:49, Keith wrote: > Real mid ...
11 years, 11 months ago (2012-05-23 05:46:23 UTC) #6
benko.pal
hi Keith, thanks for your review. 2012/5/23 <k-ohara5a5a@oco.net>: > Looks good to me. > > ...
11 years, 11 months ago (2012-05-25 19:59:29 UTC) #7
Keith
http://codereview.appspot.com/6211047/diff/20001/lily/bar-line.cc File lily/bar-line.cc (right): http://codereview.appspot.com/6211047/diff/20001/lily/bar-line.cc#newcode151 lily/bar-line.cc:151: Real const gap_to_find = (1.0 + 3 * staffline) ...
11 years, 9 months ago (2012-07-10 14:59:14 UTC) #8
benko.pal
hi Keith, 2012/7/10 <k-ohara5a5a@oco.net>: > > http://codereview.appspot.com/6211047/diff/20001/lily/bar-line.cc > File lily/bar-line.cc (right): > > http://codereview.appspot.com/6211047/diff/20001/lily/bar-line.cc#newcode151 > ...
11 years, 9 months ago (2012-07-10 15:40:56 UTC) #9
Keith
11 years, 9 months ago (2012-07-14 07:46:59 UTC) #10
http://codereview.appspot.com/6211047/diff/20001/lily/bar-line.cc
File lily/bar-line.cc (right):

http://codereview.appspot.com/6211047/diff/20001/lily/bar-line.cc#newcode151
lily/bar-line.cc:151: Real const gap_to_find = (1.0 + 3 * staffline) /
staff_space;
It seems you want 
Real const gap_to_find = (dot.extent(Y_AXIS).length() 
                          + 3 * staffline
                          ) / staff_space *2 ;
where the *2 is because you compare the gap_to_find with differences of staff
positions, and the distance of a staff space is two positions (as E to G).
Sign in to reply to this message.

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