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

Issue 3832046: Fix Issue 1290 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by Carl
Modified:
13 years, 3 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fix Issue 1290 Create an optional horizontal-padding parameter to Skyline::distance When horizontal-padding is not zero, padding is added to both systems when calculating the distance. Get the System's skyline-horizontal-padding property, and pass it to distance () in page-layout-problem.cc Add regression test for this feature.

Patch Set 1 : First patch set #

Total comments: 24

Patch Set 2 : Respond to comments #

Patch Set 3 : Fix problem with bar numbers, and improve comments #

Total comments: 1

Patch Set 4 : Add comments, and move skyline-horizontal-padding from override to grob default #

Total comments: 8

Patch Set 5 : Respond to Joe, Neil, and Keith #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -12 lines) Patch
A input/regression/skyline-horizontal-padding.ly View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M lily/include/skyline.hh View 3 chunks +4 lines, -3 lines 0 comments Download
M lily/page-layout-problem.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M lily/skyline.cc View 1 2 3 4 6 chunks +55 lines, -8 lines 0 comments Download
M scm/define-grobs.scm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24
Carl
Here is a patch to fix issue 1290. It works, but it may need to ...
13 years, 3 months ago (2011-01-02 05:02:11 UTC) #1
joeneeman
I don't know if it's important, but it may be worth mentioning somewhere that skyline-horizontal-padding ...
13 years, 3 months ago (2011-01-02 05:19:57 UTC) #2
Trevor Daniels
http://codereview.appspot.com/3832046/diff/2001/input/regression/skyline-horizontal-padding.ly File input/regression/skyline-horizontal-padding.ly (right): http://codereview.appspot.com/3832046/diff/2001/input/regression/skyline-horizontal-padding.ly#newcode13 input/regression/skyline-horizontal-padding.ly:13: \repeat unfold 80 { <c'''-1 e'''-3 g'''-5> c' <c,-1 ...
13 years, 3 months ago (2011-01-02 09:01:11 UTC) #3
Keith
Yippee for the patch. Doesn't quite work yet, probably because the function that uses your ...
13 years, 3 months ago (2011-01-02 23:09:02 UTC) #4
Keith
It is interesting to see what gets horizontally padded and what does not -- accidentals ...
13 years, 3 months ago (2011-01-02 23:54:14 UTC) #5
Carl
Thanks for all the comments. Keith has identified the correct place to put include the ...
13 years, 3 months ago (2011-01-03 03:48:09 UTC) #6
Carl
I've made the changes, and now the patch actually works. Thanks all for your comments! ...
13 years, 3 months ago (2011-01-03 15:20:31 UTC) #7
Keith
The new patch fixes the issue, but we can't yet use it in larger scores, ...
13 years, 3 months ago (2011-01-04 01:46:45 UTC) #8
Keith
Oope, I forgot to remove bar numbers. If I remove the bar numbers from the ...
13 years, 3 months ago (2011-01-04 02:02:45 UTC) #9
Carl
On 2011/01/04 01:46:45, Keith wrote: > For a 2-staff system > (with non-protruding bass clefs ...
13 years, 3 months ago (2011-01-04 03:42:26 UTC) #10
Carl
Thanks, Keith for identifying the problem with bar numbers at the beginning of the line. ...
13 years, 3 months ago (2011-01-04 18:34:42 UTC) #11
Keith
I tried to break it; it did not break. I say push it. On 2011/01/02 ...
13 years, 3 months ago (2011-01-05 01:45:56 UTC) #12
c_sorensen
On 1/4/11 6:45 PM, "k-ohara5a5a@oco.net" <k-ohara5a5a@oco.net> wrote: > I tried to break it; it did ...
13 years, 3 months ago (2011-01-05 04:07:06 UTC) #13
Graham Percival (old account)
LGTM, and it builds everything fine from scratch.
13 years, 3 months ago (2011-01-05 05:11:04 UTC) #14
Carl
I've added comments about the need for the horizontal-padding in the distance call to be ...
13 years, 3 months ago (2011-01-07 14:30:17 UTC) #15
joeneeman
http://codereview.appspot.com/3832046/diff/2001/lily/skyline.cc File lily/skyline.cc (right): http://codereview.appspot.com/3832046/diff/2001/lily/skyline.cc#newcode396 lily/skyline.cc:396: if ((i->slope_ == 0) && !isinf (i->y_intercept_) && i->y_intercept_ ...
13 years, 3 months ago (2011-01-07 16:47:27 UTC) #16
c_sorensen
On 1/7/11 9:47 AM, "joeneeman@gmail.com" <joeneeman@gmail.com> wrote: > > > http://codereview.appspot.com/3832046/diff/2001/lily/skyline.cc > File lily/skyline.cc (right): ...
13 years, 3 months ago (2011-01-07 17:08:09 UTC) #17
Neil Puttock
Hi Carl, Do we have to set a default for skyline-horizontal-padding? It has a detrimental ...
13 years, 3 months ago (2011-01-07 21:41:51 UTC) #18
Neil Puttock
http://codereview.appspot.com/3832046/diff/27001/input/regression/skyline-horizontal-padding.ly File input/regression/skyline-horizontal-padding.ly (right): http://codereview.appspot.com/3832046/diff/27001/input/regression/skyline-horizontal-padding.ly#newcode12 input/regression/skyline-horizontal-padding.ly:12: \score { needs a \book { } block to ...
13 years, 3 months ago (2011-01-07 21:59:41 UTC) #19
c_sorensen
On 1/7/11 2:41 PM, "n.puttock@gmail.com" <n.puttock@gmail.com> wrote: > Hi Carl, > > Do we have ...
13 years, 3 months ago (2011-01-07 23:28:19 UTC) #20
Keith
http://codereview.appspot.com/3832046/diff/27001/scm/define-grobs.scm File scm/define-grobs.scm (right): http://codereview.appspot.com/3832046/diff/27001/scm/define-grobs.scm#newcode1940 scm/define-grobs.scm:1940: (skyline-horizontal-padding . 2) too big for a default. I ...
13 years, 3 months ago (2011-01-07 23:53:34 UTC) #21
Carl
Thanks for the feedback. I've responded to each of the suggestions you've given me. Carl ...
13 years, 3 months ago (2011-01-08 00:34:35 UTC) #22
Carl
On 2011/01/07 21:41:51, Neil Puttock wrote: > Hi Carl, > > Do we have to ...
13 years, 3 months ago (2011-01-08 00:35:46 UTC) #23
c_sorensen
13 years, 3 months ago (2011-01-08 03:48:31 UTC) #24
On 1/7/11 4:28 PM, "Carl Sorensen" <c_sorensen@byu.edu> wrote:

> On 1/7/11 2:41 PM, "n.puttock@gmail.com" <n.puttock@gmail.com> wrote:
> 
>> Hi Carl,
>> 
>> Do we have to set a default for skyline-horizontal-padding?  It has a
>> detrimental effect on some of the regtests (particularly
>> stem-length-estimation.ly).
> 
> I was hoping that by setting the default, we'd get good spacing and we
> wouldn't need the override.
> 
> I see three possibilities:
> 
> 1) Change the default value for System skyline-horizontal-padding to see if
> we can make both regtests succeed.
> 
> 2) Eliminate the default value for System skyline-horizontal-padding, and
> use an override in skyline-horizontal-padding.ly (and document it more
> clearly).
> 
> 3) Leave the default value as it is, and \override it to zero in
> stem-length-estimation.ly.

Further checking shows that option 1 can't work.

A default value of skyline-horizontal-padding of 1.2 gets
skyline-horizontal-padding.ly to work well.

An override to System 'skyline-horizontal-padding = #0 in
stem-length-estimation.ly gets it working well.  Since we already have
overrides to make this regtest work, I don't see it as a big problem to add
another.

Thanks,

Carl

Sign in to reply to this message.

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