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

Issue 6827072: Uses single algorithm for side-position spacing. (Closed)

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

Description

Uses single algorithm for side-position spacing. To implement this, uses grob-extent based boxes for simple skylines instead of stencil-extent based boxes. Stencils are still used for more complicated skylines. Generalizes algorithm used in Fingeing_column code, allowing for better skyline spacing and fixing some collisions.

Patch Set 1 #

Total comments: 14

Patch Set 2 : Responses to Keith's comments #

Total comments: 6

Patch Set 3 : More intelligent implementation of add-stem-support #

Total comments: 7

Patch Set 4 : Adds padding uniformly to all quarantined boxes #

Total comments: 2

Patch Set 5 : Response to Keith's comments #

Patch Set 6 : Responses to Keith's review #

Total comments: 1

Patch Set 7 : Makes NoteColumn cross-staff #

Patch Set 8 : Removes valgrind header #

Patch Set 9 : uses elements list of cross-staff grobs implementing axis-group-interface #

Total comments: 3

Patch Set 10 : Uses cross-staff note columns for pure height estimations #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -471 lines) Patch
A input/regression/add-stem-support.ly View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M input/regression/dynamics-avoid-cross-staff-stem.ly View 1 chunk +6 lines, -3 lines 0 comments Download
M input/regression/finger-chords.ly View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M input/regression/fingering-column.ly View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M input/regression/les-nereides.ly View 1 2 3 4 5 6 3 chunks +2 lines, -6 lines 0 comments Download
M lily/axis-group-interface.cc View 1 2 3 4 5 6 7 8 9 7 chunks +27 lines, -9 lines 1 comment Download
M lily/box.cc View 2 chunks +14 lines, -0 lines 0 comments Download
A lily/box-quarantine.cc View 1 2 3 4 5 1 chunk +107 lines, -0 lines 1 comment Download
M lily/drum-note-engraver.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/dynamic-align-engraver.cc View 3 chunks +11 lines, -3 lines 0 comments Download
M lily/fingering-column.cc View 1 2 3 4 5 6 3 chunks +19 lines, -48 lines 1 comment Download
M lily/fingering-column-engraver.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M lily/fingering-engraver.cc View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M lily/grob.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M lily/grob-property.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M lily/include/axis-group-interface.hh View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M lily/include/box.hh View 2 chunks +2 lines, -0 lines 0 comments Download
A lily/include/box-quarantine.hh View 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
M lily/include/grob.hh View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M lily/include/multi-measure-rest.hh View 1 chunk +1 line, -0 lines 0 comments Download
M lily/include/self-alignment-interface.hh View 2 chunks +0 lines, -4 lines 0 comments Download
M lily/include/side-position-interface.hh View 1 1 chunk +1 line, -4 lines 0 comments Download
M lily/include/skyline.hh View 1 chunk +1 line, -0 lines 0 comments Download
M lily/interval-minefield.cc View 1 chunk +1 line, -1 line 0 comments Download
M lily/multi-measure-rest.cc View 1 chunk +15 lines, -0 lines 1 comment Download
M lily/new-dynamic-engraver.cc View 1 chunk +0 lines, -1 line 0 comments Download
M lily/new-fingering-engraver.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M lily/pointer-group-interface.cc View 1 2 chunks +9 lines, -0 lines 1 comment Download
M lily/script-column.cc View 1 1 chunk +1 line, -1 line 1 comment Download
M lily/self-alignment-interface.cc View 2 chunks +0 lines, -86 lines 0 comments Download
M lily/side-position-interface.cc View 1 2 3 4 5 6 8 chunks +208 lines, -261 lines 5 comments Download
M lily/skyline.cc View 4 chunks +21 lines, -4 lines 1 comment Download
M lily/stencil-integral.cc View 1 2 3 4 5 6 3 chunks +57 lines, -21 lines 2 comments Download
M scm/define-grob-properties.scm View 1 1 chunk +3 lines, -0 lines 0 comments Download
M scm/define-grobs.scm View 1 2 3 4 5 6 19 chunks +23 lines, -6 lines 0 comments Download
M scm/lily-library.scm View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M scm/output-lib.scm View 1 2 3 4 3 chunks +22 lines, -0 lines 1 comment Download

Messages

Total messages: 47
dak
http://codereview.appspot.com/6827072/diff/1/lily/side-position-interface.cc File lily/side-position-interface.cc (right): http://codereview.appspot.com/6827072/diff/1/lily/side-position-interface.cc#newcode85 lily/side-position-interface.cc:85: Position next to support, taking into account my own ...
11 years, 5 months ago (2012-11-11 13:50:14 UTC) #1
mike7
On 11 nov. 2012, at 14:50, dak@gnu.org wrote: > > http://codereview.appspot.com/6827072/diff/1/lily/side-position-interface.cc > File lily/side-position-interface.cc (right): ...
11 years, 5 months ago (2012-11-11 15:26:48 UTC) #2
dak
On 2012/11/11 15:26:48, mike7 wrote: > To be clear, I have no problem implementing a ...
11 years, 5 months ago (2012-11-11 15:33:28 UTC) #3
dak
To make it short: a function needs documentation that tells its purpose in the overall ...
11 years, 5 months ago (2012-11-11 19:57:32 UTC) #4
mike7
On 11 nov. 2012, at 20:57, dak@gnu.org wrote: > To make it short: a function ...
11 years, 5 months ago (2012-11-11 22:53:17 UTC) #5
Keith
{\clef bass <g^3 a^5>2..-> << r16 \\ r \\ r \\ r \\ >> eeses'16 ...
11 years, 5 months ago (2012-11-13 04:38:07 UTC) #6
mike7
> Re: Uses single algorithm for side-position spacing. (issue 6827072) > > {\clef bass > ...
11 years, 5 months ago (2012-11-14 07:12:46 UTC) #7
mike7
On 14 nov. 2012, at 07:33, mike@mikesolomon.org wrote: >> http://codereview.appspot.com/6827072/diff/1/lily/axis-group-interface.cc >> >> File lily/axis-group-interface.cc (right): ...
11 years, 5 months ago (2012-11-16 20:32:54 UTC) #8
mike7
On 16 nov. 2012, at 21:32, mike@mikesolomon.org wrote: > > On 14 nov. 2012, at ...
11 years, 5 months ago (2012-11-16 23:19:16 UTC) #9
Keith
On 2012/11/14 07:12:46, mike7 wrote: > > lily/axis-group-interface.cc:403: Axis_group_interface::cross_staff (SCM > > smob) > > ...
11 years, 5 months ago (2012-11-17 23:19:23 UTC) #10
Keith
I haven't gotten so far to see the main point, yet. http://codereview.appspot.com/6827072/diff/11002/lily/box-quarantine.cc File lily/box-quarantine.cc (right): ...
11 years, 5 months ago (2012-11-17 23:55:53 UTC) #11
Keith
On 2012/11/16 23:19:16, mike7 wrote: > On this subject, can someone explain to me how ...
11 years, 5 months ago (2012-11-18 00:00:47 UTC) #12
mike7
On 18 nov. 2012, at 00:19, k-ohara5a5a@oco.net wrote: > On 2012/11/14 07:12:46, mike7 wrote: >> ...
11 years, 5 months ago (2012-11-18 16:03:24 UTC) #13
mike7
On 18 nov. 2012, at 00:55, k-ohara5a5a@oco.net wrote: > I haven't gotten so far to ...
11 years, 5 months ago (2012-11-18 16:11:07 UTC) #14
Keith
http://codereview.appspot.com/6827072/diff/18003/lily/box-quarantine.cc File lily/box-quarantine.cc (right): http://codereview.appspot.com/6827072/diff/18003/lily/box-quarantine.cc#newcode69 lily/box-quarantine.cc:69: int mid = ii0.mid_; assert ((double)(ii0.index - mid) >= ...
11 years, 5 months ago (2012-11-29 02:23:38 UTC) #15
mike7
On 29 nov. 2012, at 03:23, k-ohara5a5a@oco.net wrote: > > http://codereview.appspot.com/6827072/diff/18003/lily/box-quarantine.cc > File lily/box-quarantine.cc (right): ...
11 years, 5 months ago (2012-11-29 08:28:31 UTC) #16
Keith
On 2012/11/29 08:28:31, mike7 wrote: > On 29 nov. 2012, at 03:23, mailto:k-ohara5a5a@oco.net wrote: > ...
11 years, 5 months ago (2012-11-29 09:13:34 UTC) #17
Keith
It was Box_quarantine that seemed a confusing name. (Why 'quarantine'? Is there something special about ...
11 years, 5 months ago (2012-11-29 09:24:43 UTC) #18
mike7
On 29 nov. 2012, at 10:24, k-ohara5a5a@oco.net wrote: > It was Box_quarantine that seemed a ...
11 years, 5 months ago (2012-11-29 10:01:26 UTC) #19
mike7
On 29 nov. 2012, at 10:13, k-ohara5a5a@oco.net wrote: > On 2012/11/29 08:28:31, mike7 wrote: >> ...
11 years, 5 months ago (2012-11-29 10:37:35 UTC) #20
Keith
'finger-chords.ly' is still in disagreement with its texidoc (therefore failing). You could adjust that regtest ...
11 years, 5 months ago (2012-11-30 06:25:56 UTC) #21
Keith
>> Ugh...this is a really nasty cyclic dependency. Then you could use as a test-case ...
11 years, 5 months ago (2012-11-30 21:14:48 UTC) #22
Keith
https://codereview.appspot.com/6827072/diff/19006/lily/side-position-interface.cc File lily/side-position-interface.cc (right): https://codereview.appspot.com/6827072/diff/19006/lily/side-position-interface.cc#newcode259 lily/side-position-interface.cc:259: : "vertical-skylines", Now I see why you were marking ...
11 years, 4 months ago (2012-12-05 06:16:58 UTC) #23
mike7
On 5 déc. 2012, at 07:16, k-ohara5a5a@oco.net wrote: > > https://codereview.appspot.com/6827072/diff/19006/lily/side-position-interface.cc > File lily/side-position-interface.cc (right): ...
11 years, 4 months ago (2012-12-06 07:34:06 UTC) #24
mike7
On 30 nov. 2012, at 22:14, k-ohara5a5a@oco.net wrote: >>> Ugh...this is a really nasty cyclic ...
11 years, 4 months ago (2012-12-16 07:39:18 UTC) #25
Keith
It doesn't like it when I end hairpins on note columns with stems attached to ...
11 years, 4 months ago (2012-12-17 04:02:32 UTC) #26
mike7
On 17 déc. 2012, at 05:02, k-ohara5a5a@oco.net wrote: > It doesn't like it when I ...
11 years, 4 months ago (2012-12-17 10:44:23 UTC) #27
Keith
On 2012/12/17 10:44:23, mike7 wrote: > Fixed in the most recent patch-set. It is because ...
11 years, 4 months ago (2012-12-22 06:43:50 UTC) #28
mike7
On 22 déc. 2012, at 07:43, k-ohara5a5a@oco.net wrote: > > https://codereview.appspot.com/6827072/diff/34001/lily/axis-group-interface.cc#newcode845 > lily/axis-group-interface.cc:845: // really ...
11 years, 4 months ago (2012-12-22 06:50:46 UTC) #29
Keith
On 2012/12/22 06:50:46, mike7 wrote: > It is cyclical for cross staff grobs in general. ...
11 years, 4 months ago (2012-12-22 07:40:01 UTC) #30
mike7
On 22 déc. 2012, at 08:40, k-ohara5a5a@oco.net wrote: > On 2012/12/22 06:50:46, mike7 wrote: > ...
11 years, 4 months ago (2012-12-22 07:47:16 UTC) #31
mike7
On 22 déc. 2012, at 07:43, k-ohara5a5a@oco.net wrote: > > https://codereview.appspot.com/6827072/diff/34001/lily/axis-group-interface.cc > File lily/axis-group-interface.cc (right): ...
11 years, 4 months ago (2012-12-22 16:11:10 UTC) #32
Keith
The changes to side-position-interface.cc are more extensive than I am willing to figure out. Good ...
11 years, 4 months ago (2012-12-23 19:47:34 UTC) #33
dak
https://codereview.appspot.com/6827072/diff/38003/scm/output-lib.scm File scm/output-lib.scm (right): https://codereview.appspot.com/6827072/diff/38003/scm/output-lib.scm#newcode54 scm/output-lib.scm:54: (define-public (non-event-cause grob) Mike, this function is total crap. ...
11 years, 3 months ago (2013-01-15 09:58:17 UTC) #34
dak
https://codereview.appspot.com/6827072/diff/38003/lily/multi-measure-rest.cc File lily/multi-measure-rest.cc (right): https://codereview.appspot.com/6827072/diff/38003/lily/multi-measure-rest.cc#newcode123 lily/multi-measure-rest.cc:123: Spanner *sp = dynamic_cast<Spanner *> (me); The compiler complains ...
11 years, 2 months ago (2013-02-19 18:44:03 UTC) #35
mike7
On 19 févr. 2013, at 20:44, dak@gnu.org wrote: > > https://codereview.appspot.com/6827072/diff/38003/lily/multi-measure-rest.cc > File lily/multi-measure-rest.cc (right): ...
11 years, 2 months ago (2013-02-19 19:02:49 UTC) #36
Keith
issue 3242 https://codereview.appspot.com/6827072/diff/38003/lily/axis-group-interface.cc File lily/axis-group-interface.cc (right): https://codereview.appspot.com/6827072/diff/38003/lily/axis-group-interface.cc#newcode902 lily/axis-group-interface.cc:902: Skyline_pair skylines (inside_staff_skylines); \relative c'' { r2^\f ...
11 years, 1 month ago (2013-03-14 05:42:17 UTC) #37
mike7
On 14 mars 2013, at 06:42, k-ohara5a5a@oco.net wrote: > issue 3242 > > > https://codereview.appspot.com/6827072/diff/38003/lily/axis-group-interface.cc ...
11 years, 1 month ago (2013-03-14 05:44:28 UTC) #38
mike7
On 14 mars 2013, at 06:44, mike@mikesolomon.org wrote: > > On 14 mars 2013, at ...
11 years, 1 month ago (2013-03-14 10:24:07 UTC) #39
Keith
https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc File lily/side-position-interface.cc (right): https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc#newcode151 lily/side-position-interface.cc:151: // Commented out because of cross staff issues Neil ...
11 years ago (2013-04-20 07:02:09 UTC) #40
Keith
issue 3363 https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc File lily/side-position-interface.cc (right): https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc#newcode271 lily/side-position-interface.cc:271: pure || cross_staff, At some point we ...
10 years, 11 months ago (2013-05-12 21:22:04 UTC) #41
Keith
http://code.google.com/p/lilypond/issues/detail?id=3503 On 2012/11/16 20:32:54, mike7 wrote: > On 14 nov. 2012, at 07:33, mailto:mike@mikesolomon.org wrote: ...
10 years, 8 months ago (2013-08-16 20:25:37 UTC) #42
Keith
https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc File lily/side-position-interface.cc (right): https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc#newcode331 lily/side-position-interface.cc:331: // alignment to cross-staff grobs. The comment does not ...
10 years, 8 months ago (2013-08-16 21:00:16 UTC) #43
Keith
https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc File lily/side-position-interface.cc (right): https://codereview.appspot.com/6827072/diff/38003/lily/side-position-interface.cc#newcode194 lily/side-position-interface.cc:194: common[ax] = common_refpoint_of_array (support, One recurring problem, present in ...
10 years, 8 months ago (2013-08-17 07:02:53 UTC) #44
Keith
I'm away for a few days. https://codereview.appspot.com/6827072/diff/38003/lily/pointer-group-interface.cc File lily/pointer-group-interface.cc (right): https://codereview.appspot.com/6827072/diff/38003/lily/pointer-group-interface.cc#newcode74 lily/pointer-group-interface.cc:74: // computation time ...
10 years, 8 months ago (2013-08-19 20:31:52 UTC) #45
Keith
On 2012/12/22 16:11:10, mike7 wrote: > On 22 déc. 2012, at 07:43, mailto:k-ohara5a5a@oco.net wrote: > ...
10 years, 8 months ago (2013-08-22 06:27:45 UTC) #46
Keith
10 years, 8 months ago (2013-08-22 06:28:26 UTC) #47
Message was sent while issue was closed.
https://codereview.appspot.com/6827072/diff/38003/lily/script-column.cc
File lily/script-column.cc (right):

https://codereview.appspot.com/6827072/diff/38003/lily/script-column.cc#newco...
lily/script-column.cc:159: Side_position_interface::recursive_add_support (g,
last);
Reversing this change doesn't change any regression tests.
Sign in to reply to this message.

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