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

Issue 4754054: Fixes note column skylines by adding a stem tremolo pure height function. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by MikeSol
Modified:
12 years, 9 months ago
Reviewers:
pkx166h, mike, Neil Puttock
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fixes note column skylines by adding a stem tremolo pure height function.

Patch Set 1 #

Patch Set 2 : Adds regtest. #

Patch Set 3 : Adds Stem_tremolo::pure_height to fix spacing irregularity. #

Patch Set 4 : Removes old height function. #

Total comments: 1

Patch Set 5 : Reverts back to old behavior, clean regtests. #

Patch Set 6 : Makes Stem_tremolo::pure_height pure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
A input/regression/stem-tremolo-note-column.ly View 1 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M lily/include/stem-tremolo.hh View 1 2 3 5 1 chunk +1 line, -1 line 0 comments Download
M lily/stem-tremolo.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M scm/define-grobs.scm View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M scm/safe-lily.scm View 1 2 3 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25
MikeSol
This fixes issue 1768.
12 years, 9 months ago (2011-07-18 16:11:09 UTC) #1
Neil Puttock
Hi Mike, I think this is too complicated; you can probably achieve the same result ...
12 years, 9 months ago (2011-07-18 19:24:26 UTC) #2
MikeSol
On 2011/07/18 19:24:26, Neil Puttock wrote: > Hi Mike, > > I think this is ...
12 years, 9 months ago (2011-07-18 19:28:51 UTC) #3
Neil Puttock
On 2011/07/18 19:28:51, MikeSol wrote: > How would pure height affect the calculation of horizontal ...
12 years, 9 months ago (2011-07-18 19:47:53 UTC) #4
Neil Puttock
On 2011/07/18 19:47:53, Neil Puttock wrote: > On 2011/07/18 19:28:51, MikeSol wrote: > > > ...
12 years, 9 months ago (2011-07-18 19:53:38 UTC) #5
pkx166h
Make works fine but I get a seg fault when I do a make check ...
12 years, 9 months ago (2011-07-18 20:01:00 UTC) #6
Neil Puttock
On 2011/07/18 20:01:00, J_lowe wrote: > Make works fine but I get a seg fault ...
12 years, 9 months ago (2011-07-18 21:24:50 UTC) #7
MikeSol
On 2011/07/18 21:24:50, Neil Puttock wrote: > On 2011/07/18 20:01:00, J_lowe wrote: > > Make ...
12 years, 9 months ago (2011-07-19 07:03:02 UTC) #8
mike_apollinemike.com
On Jul 18, 2011, at 9:53 PM, n.puttock@gmail.com wrote: > Even simpler: remove the Y-extent ...
12 years, 9 months ago (2011-07-19 08:10:39 UTC) #9
Neil Puttock
On 19 July 2011 09:10, mike@apollinemike.com <mike@apollinemike.com> wrote: > After making several round-trips around the ...
12 years, 9 months ago (2011-07-19 16:11:36 UTC) #10
Neil Puttock
http://codereview.appspot.com/4754054/diff/14001/lily/stem-tremolo.cc File lily/stem-tremolo.cc (right): http://codereview.appspot.com/4754054/diff/14001/lily/stem-tremolo.cc#newcode151 lily/stem-tremolo.cc:151: Stem_tremolo::pure_height (SCM smob, SCM, SCM) SCM /* start */, ...
12 years, 9 months ago (2011-07-19 16:26:05 UTC) #11
pkx166h
Make works ok, but I get some warnings in the reg test --snip-- @@ -9,6 ...
12 years, 9 months ago (2011-07-19 21:03:20 UTC) #12
MikeSol
I went back to my own plan after recent grob impurities - this passes regtests ...
12 years, 9 months ago (2011-07-20 14:03:49 UTC) #13
MikeSol
On 2011/07/20 14:03:49, MikeSol wrote: > I went back to my own plan after recent ...
12 years, 9 months ago (2011-07-20 14:04:19 UTC) #14
Neil Puttock
On 2011/07/20 14:03:49, MikeSol wrote: > I went back to my own plan after recent ...
12 years, 9 months ago (2011-07-20 15:32:20 UTC) #15
mike_apollinemike.com
On Jul 20, 2011, at 5:32 PM, n.puttock@gmail.com wrote: > On 2011/07/20 14:03:49, MikeSol wrote: ...
12 years, 9 months ago (2011-07-20 15:37:07 UTC) #16
Neil Puttock
On 20 July 2011 16:36, mike@apollinemike.com <mike@apollinemike.com> wrote: > I'm starting to doubt the viability ...
12 years, 9 months ago (2011-07-20 16:04:23 UTC) #17
MikeSol
On 2011/07/20 16:04:23, Neil Puttock wrote: > On 20 July 2011 16:36, mailto:mike@apollinemike.com <mailto:mike@apollinemike.com> wrote: ...
12 years, 9 months ago (2011-07-20 20:21:41 UTC) #18
mike_apollinemike.com
On Jul 20, 2011, at 10:21 PM, mtsolo@gmail.com wrote: > On 2011/07/20 16:04:23, Neil Puttock ...
12 years, 9 months ago (2011-07-21 07:59:22 UTC) #19
pkx166h
Passes make and reg tests show some differences - nothing significantly wrong see http://code.google.com/p/lilypond/issues/detail?id=1768#c6 for ...
12 years, 9 months ago (2011-07-24 11:06:43 UTC) #20
MikeSol
On 2011/07/24 11:06:43, J_lowe wrote: > Passes make and reg tests show some differences - ...
12 years, 9 months ago (2011-07-27 08:40:04 UTC) #21
MikeSol
On 2011/07/27 08:40:04, MikeSol wrote: > On 2011/07/24 11:06:43, J_lowe wrote: > > Passes make ...
12 years, 9 months ago (2011-07-27 08:42:32 UTC) #22
mike_apollinemike.com
On Jul 19, 2011, at 6:11 PM, Neil Puttock wrote: > On 19 July 2011 ...
12 years, 8 months ago (2011-08-11 11:34:54 UTC) #23
Neil Puttock
On 11 August 2011 12:34, mike@apollinemike.com <mike@apollinemike.com> wrote: > I figured out why it works ...
12 years, 8 months ago (2011-08-11 17:03:25 UTC) #24
mike_apollinemike.com
12 years, 8 months ago (2011-08-11 22:31:23 UTC) #25
On Aug 11, 2011, at 7:03 PM, Neil Puttock wrote:

> On 11 August 2011 12:34, mike@apollinemike.com <mike@apollinemike.com> wrote:
> 
>> I figured out why it works - I figured I'd post this to the list in case
anyone else ever wants to mess around with pure properties.
>> 
>> The StemTremolo is added to the paper column's element grob array via the
axis-group-engraver because it does not have an axis-group-parent-Y.
> 
> I think you mean the VerticalAxisGroup's elements array.
> 
> The StemTremolo is added to a PaperColumn's elements array (and gets
> the column as axis-group-parent-X) in the Paper_column_engraver.
> 

Yes, you're absolutely right.

>> Then, when horizontal spacing happens, its pure height function is passed
through for its print function (separation-item.cc).
> 
> I think I understand: before you added the print-to-height conversion,
> the original height callback (ly:stem-tremolo::height) wasn't
> pure-relevant; this resulted in Item::pure_height () returning an
> empty extent, causing the StemTremolo to be left out of the skyline.
> This didn't matter unless the spacing was really tight.
> 

Yup!

Cheers,
MS
Sign in to reply to this message.

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